欢迎光临
我们一直在努力
广告
广告
广告
广告
广告
广告

2022年谷歌无限网盘申请和VPS挂载谷歌网盘的方法

虽然谷歌盘盘对网盘进行了捕捉的搬运限制,但还有足够的谷歌能力对个人还是有很大的作用,只要不饲养还是可以长期使用的,今天来说一下如何申请谷歌团队盘,不是把队伍盘挂到你的VPS上,挂载后可以安装离线下载,音影库,等等可以翻墙访问,注意:必须在vps上安装xray才能后续操作。

一、申请无限空间谷歌团队盘

2021年谷歌团队盘申请网址

中文 https://gdrive.zppcw.cn/

越南 https://team.gdrive.vip/

二、Rclone挂载谷歌团队盘

下面以centos系统为例

必要升级

yumupdate&&yumupgrade

安装命令

curlhttps://rclone.org/install.sh|sudobash

配置rclone

rcloneconfig

开始配置

n)Newremote
s)Setconfigurationpassword
q)Quitconfig
n/s/q>n#输入n回车,新建配置
name>gd#新建配置的名称,随意填写,后面会用到
Typeofstoragetoconfigure.
Enterastringvalue.PressEnterforthedefault("").
Chooseanumberfrombelow,ortypeinyourownvalue
1/1Fichier
"fichier"
2/Aliasforanexistingremote
"alias"
3/AmazonDrive
"amazonclouddrive"
4/AmazonS3CompliantStorageProvider(AWS,Alibaba,Ceph,DigitalOcean,Dreamhost,IBMCOS,Minio,etc)
"s3"
5/BackblazeB2
"b2"
6/Box
"box"
7/Cachearemote
"cache"
8/Dropbox
"dropbox"
9/Encrypt/Decryptaremote
"crypt"
10/FTPConnection
"ftp"
11/GoogleCloudStorage(thisisnotGoogleDrive)
"googlecloudstorage"
12/GoogleDrive
"drive"
13/GooglePhotos
"googlephotos"
14/Hubic
"hubic"
15/JottaCloud
"jottacloud"
16/Koofr
"koofr"
17/LocalDisk
"local"
18/Mega
"mega"
19/MicrosoftAzureBlobStorage
"azureblob"
20/MicrosoftOneDrive
"onedrive"
21/OpenDrive
"opendrive"
22/OpenstackSwift(RackspaceCloudFiles,MemsetMemstore,OVH)
"swift"
23/Pcloud
"pcloud"
24/Put.io
"putio"
25/QingCloudObjectStorage
"qingstor"
26/SSH/SFTPConnection
"sftp"
27/Unionmergesthecontentsofseveralremotes
"union"
28/Webdav
"webdav"
29/YandexDisk
"yandex"
30/httpConnection
"http"
31/premiumize.me
"premiumizeme"
Storage>12#选择需要挂载的网盘
**Seehelpfordrivebackendat:https://rclone.org/drive/**

GoogleApplicationClientId
Settingyourownisrecommended.
Seehttps://rclone.org/drive/#making-your-own-client-idforhowtocreateyourown.
Ifyouleavethisblank,itwilluseaninternalkeywhichislowperformance.
Enterastringvalue.PressEnterforthedefault("").
client_id>#默认直接回车,或者输入自己的OAuthID
GoogleApplicationClientSecret
Settingyourownisrecommended.
Enterastringvalue.PressEnterforthedefault("").
client_secret>#默认直接回车,或者输入自己的OAuth秘锁
Scopethatrcloneshouldusewhenrequestingaccessfromdrive.
Enterastringvalue.PressEnterforthedefault("").
Chooseanumberfrombelow,ortypeinyourownvalue
1/Fullaccessallfiles,excludingApplicationDataFolder.
"drive"
2/Read-onlyaccesstofilemetadataandfilecontents.
"drive.readonly"
/Accesstofilescreatedbyrcloneonly.
3|Thesearevisibleinthedrivewebsite.
|Fileauthorizationisrevokedwhentheuserdeauthorizestheapp.
"drive.file"
/AllowsreadandwriteaccesstotheApplicationDatafolder.
4|Thisisnotvisibleinthedrivewebsite.
"drive.appfolder"
/Allowsread-onlyaccesstofilemetadatabut
5|doesnotallowanyaccesstoreadordownloadfilecontent.
"drive.metadata.readonly"
scope>1#默认输入1回车
IDoftherootfolder
Leaveblanknormally.
Fillintoaccess"Computers"folders.(seedocs).
Enterastringvalue.PressEnterforthedefault("").
root_folder_id>#默认直接回车
ServiceAccountCredentialsJSONfilepath
Leaveblanknormally.
NeededonlyifyouwantuseSAinsteadofinteractivelogin.
Enterastringvalue.PressEnterforthedefault("").
service_account_file>
Editadvancedconfig?(y/n)
y)Yes
n)No
y/n>n#是否编辑高级配置,输入n回车
Remoteconfig
Useautoconfig?
*SayYifnotsure
*SayNifyouareworkingonaremoteorheadlessmachine
y)Yes
n)No
y/n>n#是否使用自动配置,输入n回车
Ifyourbrowserdoesn'topenautomaticallygotothefollowinglink:https://accounts.google.com/o/oauth2/XXX
Loginandauthorizercloneforaccess
Enterverificationcode>XXXX#复制上面的链接在浏览器中打开,将得到的授权码复制到这里后回车
Configurethisasateamdrive?
y)Yes
n)No
y/n>y#是否挂载团队网盘,如果没有输入n回车,需要挂载团队版输入y回车
Fetchingteamdrivelist...
Chooseanumberfrombelow,ortypeinyourownvalue
1/SunPma
"0ADYACmKjlU3JUk9PVA"
EnteraTeamDriveID>1#选择你需要挂载的团队盘然后回车
--------------------
[SUNPMAGD]
type=drive
scope=drive
token={"access_token":"XXX","expiry":"2019-10-23T14:32:06.481207275+08:00"}
team_drive=0ADYACmKjlU3JUk9PVA
--------------------
y)YesthisisOK
e)Editthisremote
d)Deletethisremote
y/e/d>y#默认输入y回车
Currentremotes:

NameType
========
SUNPMAGDdrive

e)Editexistingremote
n)Newremote
d)Deleteremote
r)Renameremote
c)Copyremote
s)Setconfigurationpassword
q)Quitconfig
e/n/d/r/c/s/q>q#输入q回车,保存配置退出

新建本地挂载文件夹

mkdir/home/gd

挂载磁盘命令说明

#/usr/bin/rclonemountDriveName:FolderLocalFolder
下面整体代码中最上面的这条需要自己修改,不要直接复制,注意代码中有空格
DriveName#配置时填写的name
Folder#网盘里要挂载的文件夹名
LocalFolder#本地要挂载的文件夹绝对路径
例:/usr/bin/rclone mount gd:/home/gd

挂载

#下面代码是一个整体,全部复制后粘贴运行
/usr/bin/rclonemountgd:/home/gd
--umask0000
--default-permissions
--allow-non-empty
--allow-other
--transfers1
--buffer-size64M
--low-level-retries200
--dir-cache-time12h
--vfs-read-chunk-size32M
--vfs-read-chunk-size-limit1G
#如果你还涉及到读取使用,比如使用H5ai等在线播放,就在后面多加上最后三条参数

参数说明

--transfers:该参数是最大同时传输任务数量,如果经常传输大文件,或CPU性能不佳,建议设置为单线程,也就是设置为“1”
--buffer-size:该参数为读取每个文件时的内存缓冲区大小,控制rclone上传和挂载的时候的内存占用
--low-level-retries:该参数为传输文件没速度的时候重试次数,没速度的时候,单个会自动睡眠10ms起,然后再重试

如果挂载时候出错如下图:

%title插图%num如果出错安装fuse

yuminstallfuse

查看是否成功

df-h

如下图显示gd 挂载成功

%title插图%num

三、开机启动

找到/etc/systemd/system ,在里面新建一个名为 rclone.service 的文件,文件的完整路径为 /etc/systemd/system/rclone.service 然后在文件中填入以下代码。

[Unit]
Description=Rclone
AssertPathIsDirectory=/home/gd
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclonemountgd:/home/gd
--umask0000
--default-permissions
--allow-non-empty
--allow-other
--transfers1
--buffer-size64M
--low-level-retries200
--dir-cache-time12h
--vfs-read-chunk-size32M
--vfs-read-chunk-size-limit1G
ExecStop=/bin/fusermount-u/home/gd
Restart=on-abort
User=root

[Install]
WantedBy=default.target

启动rclone

systemctlstartrclone

开机启动rclone

systemctlenablerclone

rclone常用命令

重启:systemctl restart rclone
停止:systemctl stop rclone
状态:systemctl status rclone

另外备注:如果你想要用宝塔面板安装可道云网盘的web管理界面,那就把谷歌盘挂载在可道云下面!只需要修改开机配置文件如下

[Unit]
Description=Rclone
AssertPathIsDirectory=/www/wwwroot/你的域名/data/User/admin/home/gd
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount gd: /www/wwwroot/你的域名/data/User/admin/home/gd
--umask 0000
--default-permissions
--allow-non-empty
--allow-other
--transfers 1
--buffer-size 64M
--low-level-retries 200
--dir-cache-time 12h
--vfs-read-chunk-size 32M
--vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u /www/wwwroot/你的域名/data/User/admin/home/gd
Restart=on-abort
User=root

[Install]
WantedBy=default.target

搬瓦工推荐方案

温馨提醒 如果您有选择困难症,直接选中间的 CN2 GIA-E方案,季付 $49.99,多达 12 个机房任意切换
方案 内存 CPU 硬盘 流量/月 带宽 机房 价格 购买
CN2
(最便宜)
1GB 1核 20GB 1TB 1Gbps DC3 CN2
DC8 ZNET
$49.99/年 购买
CN2 2GB 1核 40GB 2TB 1Gbps $52.99/半年
$99.99/年
购买
CN2 GIA-E
(最推荐)
1GB 2核 20GB 1TB 2.5Gbps DC6 CN2 GIA-E
DC9 CN2 GIA
日本软银 JPOS_1
荷兰 EUNL_9
$49.99/季度
$169.99/年
购买
CN2 GIA-E 2GB 3核 40GB 2TB 2.5Gbps $89.99/季度
$299.99/年
购买
HK 2GB 2核 40GB 0.5TB 1Gbps 中国香港 CN2 GIA $89.99/月
$899.99/年
购买
HK 4GB 4核 80GB 1TB 1Gbps $155.99/月
$1559.99/年
购买
TOKYO 2GB 2核 40GB 0.5TB 1.2Gbps 日本东京 CN2 GIA $89.99/月
$899.99/年
购买
TOKYO 4GB 4核 80GB 1TB 1.2Gbps $155.99/月
$1559.99/年
购买
搬瓦工优惠码:BWH3HYATVBJW

选择建议:

  • 入门:洛杉矶 CN2 套餐,目前最便宜,可选 CN2 GT 机房,入门之选。
  • 推荐:洛杉矶 CN2 GIA-E 套餐,速度超快,可选机房多(DC6、DC9、日本软银、荷兰联通等),性价比最高。
  • 高端:香港 CN2 GIA 套餐,价格较高,但是无可挑剔。东京 CN2 GIA 套餐也是非常不错的高端选择。
香港110M(含10M CN2)大带宽独服限量促销,香港E3-8G-1T硬盘-3IP,月付仅799!
赞(6)
未经允许不得转载:优乐评测网 » 2022年谷歌无限网盘申请和VPS挂载谷歌网盘的方法

评论 抢沙发

优乐评测网 找服务器 更专业 更方便 更快捷!

专注IDC行业资源共享发布,给大家带来方便快捷的资源查找平台!

联系我们