安装EPEL源

yum -y install epel-release
yum -y install wget unzip screen fuse fuse-devel
wget https://downloads.rclone.org/v1.40/rclone-v1.40-linux-amd64.zip
unzip rclone-v1.40-linux-amd64.zip
cd rclone-v1.40-linux-amd64
./rclone config

接下来就是选择

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> 

选择n

name> 

随便输入

   \ "google cloud storage"
11 / Google Drive
   \ "drive"

Storage选择google 对应的数字

client_id> 回车

client_secret> 回车

 1 / Full access all files, excluding Application Data Folder.
   \ "drive"
 2 / Read-only access to file metadata and file contents.
   \ "drive.readonly"
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ "drive.file"
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \ "drive.appfolder"
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \ "drive.metadata.readonly"

scope> 选择1

root_folder_id>回车

service_account_file> 回车

Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
y/n>选择n

If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log in and authorize rclone for access
Enter verification code>这里输入复制上方的网址打开后获得的4/开头的码

configure this as a team drive?
y)yes
n)no
y/n)如果出现这个选择n

完成后输入

./rclone config file

获取完成后输入

vi ~/config/rclone/rclone.conf

获取到1/开头的就是token了