2022年谷歌無限網(wǎng)盤申請和VPS掛載谷歌網(wǎng)盤的方法

雖然谷歌盤盤對網(wǎng)盤進行了捕捉的搬運限制,但還有足夠的谷歌能力對個人還是有很大的作用,只要不飼養(yǎng)還是可以長期使用的,今天來說一下如何申請谷歌團隊盤,不是把隊伍盤掛到你的VPS上,掛載后可以安裝離線下載,音影庫,等等可以翻墻訪問,注意:必須在vps上安裝xray才能后續(xù)操作。

一、申請無限空間谷歌團隊盤

2021年谷歌團隊盤申請網(wǎng)址

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

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

二、Rclone掛載谷歌團隊盤

下面以centos系統(tǒng)為例

必要升級

?yum?update?&&?yum?upgrade

安裝命令

curl?https://rclone.org/install.sh?|?sudo?bash

配置rclone

?rclone?config

開始配置

n)?New?remote
?s)?Set?configuration?password
?q)?Quit?config
?n/s/q>?n???#輸入n回車,新建配置
?name>?gd???#新建配置的名稱,隨意填寫,后面會用到
?Type?of?storage?to?configure.
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?Choose?a?number?from?below,?or?type?in?your?own?value
??1?/?1Fichier
?????"fichier"
??2?/?Alias?for?an?existing?remote
?????"alias"
??3?/?Amazon?Drive
?????"amazon?cloud?drive"
??4?/?Amazon?S3?Compliant?Storage?Provider?(AWS,?Alibaba,?Ceph,?Digital?Ocean,?Dreamhost,?IBM?COS,?Minio,?etc)
?????"s3"
??5?/?Backblaze?B2
?????"b2"
??6?/?Box
?????"box"
??7?/?Cache?a?remote
?????"cache"
??8?/?Dropbox
?????"dropbox"
??9?/?Encrypt/Decrypt?a?remote
?????"crypt"
?10?/?FTP?Connection
?????"ftp"
?11?/?Google?Cloud?Storage?(this?is?not?Google?Drive)
?????"google?cloud?storage"
?12?/?Google?Drive
?????"drive"
?13?/?Google?Photos
?????"google?photos"
?14?/?Hubic
?????"hubic"
?15?/?JottaCloud
?????"jottacloud"
?16?/?Koofr
?????"koofr"
?17?/?Local?Disk
?????"local"
?18?/?Mega
?????"mega"
?19?/?Microsoft?Azure?Blob?Storage
?????"azureblob"
?20?/?Microsoft?OneDrive
?????"onedrive"
?21?/?OpenDrive
?????"opendrive"
?22?/?Openstack?Swift?(Rackspace?Cloud?Files,?Memset?Memstore,?OVH)
?????"swift"
?23?/?Pcloud
?????"pcloud"
?24?/?Put.io
?????"putio"
?25?/?QingCloud?Object?Storage
?????"qingstor"
?26?/?SSH/SFTP?Connection
?????"sftp"
?27?/?Union?merges?the?contents?of?several?remotes
?????"union"
?28?/?Webdav
?????"webdav"
?29?/?Yandex?Disk
?????"yandex"
?30?/?http?Connection
?????"http"
?31?/?premiumize.me
?????"premiumizeme"
?Storage>?12???????#選擇需要掛載的網(wǎng)盤
?**?See?help?for?drive?backend?at:?https://rclone.org/drive/?**
?
?Google?Application?Client?Id
?Setting?your?own?is?recommended.
?See?https://rclone.org/drive/#making-your-own-client-id?for?how?to?create?your?own.
?If?you?leave?this?blank,?it?will?use?an?internal?key?which?is?low?performance.
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?client_id>???????#默認(rèn)直接回車,或者輸入自己的OAuth?ID
?Google?Application?Client?Secret
?Setting?your?own?is?recommended.
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?client_secret>???#默認(rèn)直接回車,或者輸入自己的OAuth秘鎖
?Scope?that?rclone?should?use?when?requesting?access?from?drive.
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?Choose?a?number?from?below,?or?type?in?your?own?value
??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?????????#默認(rèn)輸入1回車
?ID?of?the?root?folder
?Leave?blank?normally.
?Fill?in?to?access?"Computers"?folders.?(see?docs).
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?root_folder_id>?#默認(rèn)直接回車
?Service?Account?Credentials?JSON?file?path
?Leave?blank?normally.
?Needed?only?if?you?want?use?SA?instead?of?interactive?login.
?Enter?a?string?value.?Press?Enter?for?the?default?("").
?service_account_file>
?Edit?advanced?config??(y/n)
?y)?Yes
?n)?No
?y/n>?n???????????#是否編輯高級配置,輸入n回車
?Remote?config
?Use?auto?config?
??*?Say?Y?if?not?sure
??*?Say?N?if?you?are?working?on?a?remote?or?headless?machine
?y)?Yes
?n)?No
?y/n>?n?????????#是否使用自動配置,輸入n回車
?If?your?browser?doesn't?open?automatically?go?to?the?following?link:?https://accounts.google.com/o/oauth2/XXX
?Log?in?and?authorize?rclone?for?access
?Enter?verification?code>?XXXX?#復(fù)制上面的鏈接在瀏覽器中打開,將得到的授權(quán)碼復(fù)制到這里后回車
?Configure?this?as?a?team?drive?
?y)?Yes
?n)?No
?y/n>?y?????????#是否掛載團隊網(wǎng)盤,如果沒有輸入n回車,需要掛載團隊版輸入y回車
?Fetching?team?drive?list...
?Choose?a?number?from?below,?or?type?in?your?own?value
??1?/?SunPma
?????"0ADYACmKjlU3JUk9PVA"
?Enter?a?Team?Drive?ID>?1?????#選擇你需要掛載的團隊盤然后回車
?--------------------
?[SUNPMAGD]
?type?=?drive
?scope?=?drive
?token?=?{"access_token":"XXX","expiry":"2019-10-23T14:32:06.481207275+08:00"}
?team_drive?=?0ADYACmKjlU3JUk9PVA
?--------------------
?y)?Yes?this?is?OK
?e)?Edit?this?remote
?d)?Delete?this?remote
?y/e/d>?y???????#默認(rèn)輸入y回車
?Current?remotes:
?
?Name?????????????????Type
?====?????????????????====
?SUNPMAGD?????????????drive
?
?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>?q???#輸入q回車,保存配置退出

新建本地掛載文件夾

?mkdir?/home/gd

掛載磁盤命令說明

?#/usr/bin/rclone?mount?DriveName:Folder?LocalFolder?
?下面整體代碼中最上面的這條需要自己修改,不要直接復(fù)制,注意代碼中有空格
?DriveName???????#配置時填寫的name
?Folder?????????#網(wǎng)盤里要掛載的文件夾名
?LocalFolder?????#本地要掛載的文件夾絕對路徑
?例:/usr/bin/rclone mount gd:?/home/gd

掛載

#下面代碼是一個整體,全部復(fù)制后粘貼運行
?/usr/bin/rclone?mount?gd:?/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
??#如果你還涉及到讀取使用,比如使用H5ai等在線播放,就在后面多加上最后三條參數(shù)

參數(shù)說明

--transfers:該參數(shù)是最大同時傳輸任務(wù)數(shù)量,如果經(jīng)常傳輸大文件,或CPU性能不佳,建議設(shè)置為單線程,也就是設(shè)置為“1”
?--buffer-size:該參數(shù)為讀取每個文件時的內(nèi)存緩沖區(qū)大小,控制rclone上傳和掛載的時候的內(nèi)存占用
?--low-level-retries:該參數(shù)為傳輸文件沒速度的時候重試次數(shù),沒速度的時候,單個會自動睡眠10ms起,然后再重試

如果掛載時候出錯如下圖:

如果出錯安裝fuse

?yum?install?fuse

查看是否成功

?df?-h

如下圖顯示gd 掛載成功

三、開機啟動

找到/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/rclone?mount?gd:?/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?/home/gd
?Restart=on-abort
?User=root
?
?[Install]
?WantedBy=default.target

啟動rclone

?systemctl?start?rclone

開機啟動rclone

?systemctl?enable?rclone

rclone常用命令

?重啟:systemctl restart rclone
?停止:systemctl stop rclone
?狀態(tài):systemctl status rclone

另外備注:如果你想要用寶塔面板安裝可道云網(wǎng)盤的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 個機房任意切換
方案 內(nèi)存 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/年
購買
搬瓦工優(yōu)惠碼:BWH3HYATVBJW

選擇建議:

  • 入門:洛杉磯 CN2 套餐,目前最便宜,可選 CN2 GT 機房,入門之選。
  • 推薦:洛杉磯 CN2 GIA-E 套餐,速度超快,可選機房多(DC6、DC9、日本軟銀、荷蘭聯(lián)通等),性價比最高。
  • 高端:香港 CN2 GIA 套餐,價格較高,但是無可挑剔。東京 CN2 GIA 套餐也是非常不錯的高端選擇。
贊(8)
版權(quán)聲明:本文采用知識共享 署名4.0國際許可協(xié)議 [BY-NC-SA] 進行授權(quán), 轉(zhuǎn)載請注明出處。
文章名稱:《2022年谷歌無限網(wǎng)盤申請和VPS掛載谷歌網(wǎng)盤的方法》
文章鏈接:http://www.lrracing.com/28143.html
【聲明】:國外主機測評僅分享信息,不參與任何交易,也非中介,所有內(nèi)容僅代表個人觀點,均不作直接、間接、法定、約定的保證,讀者購買風(fēng)險自擔(dān)。一旦您訪問國外主機測評,即表示您已經(jīng)知曉并接受了此聲明通告。
【關(guān)于安全】:任何 IDC商家都有倒閉和跑路的可能,備份永遠是最佳選擇,服務(wù)器也是機器,不勤備份是對自己極不負(fù)責(zé)的表現(xiàn),請保持良好的備份習(xí)慣。