VPS参考测评推荐
专注分享VPS主机优惠信息
衡天云优惠活动
华纳云优惠活动
荫云优惠活动

用GCP白票中转与下载

主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情!
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作

  由于GCP到gdrive流量可以aria2离线下载上传GCP团队盘 再通过CF搭建的GDindex下载也可以用于中转 只要aria2能下载的都可以中转到团队盘

GCP流量说明
用GCP白票中转与下载-主机参考

GCP切换ROOT登陆

  1. sudo -i   //切换到root用户
  2. vi /etc/ssh/sshd_config //编辑文件
  3. # Authentication:
  4. PermitRootLogin yes //默认为no,需要开启root用户访问改为yes
  5. # Change to no to disable tunnelled clear text passwords
  6. PasswordAuthentication yes //默认为no,改为yes开启密码登陆
  7. service sshd restart

复制代码

团队盘申请:https://www.hostloc.com/thread-684825-1-1.html

申请完之后登陆点击团队盘 会出现这个地址 https://drive.google.com/drive/folders/**********     “*代表团队盘目录ID”

用GCP白票中转与下载-主机参考

安装rclone

apt install wget curl ca-certificates unzip -y

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

rclone config

挂载团队盘

  1. root@aria2:~# rclone config
  2. file “/root/.config/rclone/rclone.conf” not found – using defaults
  3. No remotes found – make a new one
  4. n) New remote
  5. s) Set configuration password
  6. q) Quit config
  7. n/s/q&me&ia #用户名
  8. Type of storage to configure.
  9. Enter a string value. Press Enter for the default (“”).
  10. Choose a number from below, or type in your own value
  11. 1 / 1Fichier
  12.     “fichier”
  13. 2 / Alias for an existing remote
  14.     “alias”
  15. 3 / Amazon Drive
  16.     “amazon cloud drive”
  17. 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
  18.     “s3”
  19. 5 / Backblaze B2
  20.     “b2”
  21. 6 / Box
  22.     “box
  23. 7 / Cache a remote
  24.     “cache”
  25. 8 / Citrix Sharefile
  26.     “sharefile”
  27. 9 / Dropbox
  28.     “dropbox
  29. 10 / Encrypt/Decrypt a remote
  30.     “crypt”
  31. 11 / FTP Connection
  32.     “ftp
  33. 12 / Google Cloud Storage (this is not Google Drive)
  34.     “google cloud storage”
  35. 13 / Google Drive
  36.     “drive”
  37. 14 / Google Photos
  38.     “google photos”
  39. 15 / Hubic
  40.     “hubic”
  41. 16 / In memory object storage system.
  42.     “memory”
  43. 17 / JottaCloud
  44.     “jottacloud”
  45. 18 / Koofr
  46.     “koofr”
  47. 19 / Local Disk
  48.     “local”
  49. 20 / Mail.ru Cloud
  50.     “mailru”
  51. 21 / Mega
  52.     “mega
  53. 22 / Microsoft Azure Blob Storage
  54.     “azureblob”
  55. 23 / Microsoft OneDrive
  56.     “onedrive
  57. 24 / OpenDrive
  58.     “opendrive”
  59. 25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
  60.     “swift”
  61. 26 / Pcloud
  62.     “pcloud”
  63. 27 / Put.io
  64.     “putio”
  65. 28 / QingCloud Object Storage
  66.     “qingstor”
  67. 29 / SSH/SFTP Connection
  68.     “sftp
  69. 30 / Sugarsync
  70.     “sugarsync”
  71. 31 / Transparently chunk/split large files
  72.     “chunker”
  73. 32 / Union merges the contents of several remotes
  74.     “union”
  75. 33 / Webdav
  76.     “webdav
  77. 34 / Yandex Disk
  78.     “yandex
  79. 35 / http Connection
  80.     “http
  81. 36 / premiumize.me
  82.     “premiumizeme”
  83. Storage&ee help for drive backend at: https://rclone.org/drive/ **
  84. Google Application Client Id
  85. Setting your own is recommended.
  86. See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
  87. If you leave this blank, it will use an internal key which is low performance.
  88. Enter a string value. Press Enter for the default (“”).
  89. client_id&pplication Client Secret
  90. Setting your own is recommended.
  91. Enter a string value. Press Enter for the default (“”).
  92. client_secret&use when requesting access from drive.
  93. Enter a string value. Press Enter for the default (“”).
  94. Choose a number from below, or type in your own value
  95. 1 / Full access all files, excluding Application Data Folder.
  96.     “drive”
  97. 2 / Read-only access to file metadata and file contents.
  98.     “drive.readonly”
  99.    / Access to files created by rclone only.
  100. 3 | These are visible in the drive website.
  101.    | File authorization is revoked when the user deauthorizes the app.
  102.     “drive.file”
  103.    / Allows read and write access to the Application Data folder.
  104. 4 | This is not visible in the drive website.
  105.     “drive.appfolder”
  106.    / Allows read-only access to file metadata but
  107. 5 | does not allow any access to read or download file content.
  108.     “drive.metadata.readonly”
  109. scope&rmally.
  110. Fill in to access “Computers” folders (see docs), or for rclone to use
  111. a non root folder as its starting point.
  112. Note that if this is blank, the first time rclone runs it will fill it
  113. in with the ID of the root folder.
  114. Enter a string value. Press Enter for the default (“”).
  115. root_folder_id&ON file path
  116. Leave blank normally.
  117. Needed only if you want use SA instead of interactive login.
  118. Enter a string value. Press Enter for the default (“”).
  119. service_account_file&dvanced config? (y/n)
  120. y) Yes
  121. n) No (default)
  122. y/n&rking on a remote or headless machine
  123. y) Yes (default)
  124. n) No
  125. y/n&go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offlineclient_id=202264815644.apps.googleusercontent.comredirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoobresponse_type=codescope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrivestate=OTlPFqRlrfduCyQtQ3nP2w
  126.   #复制地址浏览器登录授权 然后粘贴授权
  127. Log in and authorize rclone for access
  128. Enter verification code&piry”:”lete this remote
  129. y/e/d&lete remote
  130. r) Rename remote
  131. c) Copy remote
  132. s) Set configuration password
  133. q) Quit config
  134. e/n/d/r/c/s/q> 选择q退出

复制代码

安装aria2

  1. bash <(wget -qO- git.io/aria2.sh)

复制代码

修改配置文件/root/.aria2/aria2.conf

# 全局最大上传速度限制, 运行时可修改, 默认:0
max-overall-upload-limit=100k     改为100K或者更低上传,这个很重要 因为上传是出站第三方流量是算钱的

# 单个任务上传速度限制, 默认:0
max-upload-limit=100k

# 下载完成后执行的命令
把on-download-complete=/root/.aria2/delete.aria2.sh

替换为自动上传脚本 on-download-complete=/root/.aria2/autoupload.sh

修改自动上传脚本 /root/.aria2/autoupload.sh

# Rclone 配置时填写的网盘名(name)
DRIVE_NAME=’aria’

# 网盘目录。即上传目标路径,留空为网盘根目录,末尾不要有斜杠。
DRIVE_PATH=”

service aria2 restart  #重启aria2

安装GDindex
一键自动安装地址 https://gdindex-code-builder.glitch.me/
ROOT那里写团队盘ID 不写也行 反正全目录的

生成代码放CF workers
预览地址: https://aria.1994917.xyz

速度测试
用GCP白票中转与下载-主机参考
用GCP白票中转与下载-主机参考

各路大神回复

注册: 为什么不用heroku,甚至不用开服务器

铅笔: heroku没事就封

这几篇文章你可能也喜欢:

本文由主机参考刊发,转载请注明:用GCP白票中转与下载 https://zhujicankao.com/26956.html

【腾讯云】领8888元采购礼包,抢爆款云服务器 每月 9元起,个人开发者加享折上折!
打赏
转载请注明原文链接:主机参考 » 用GCP白票中转与下载
主机参考仅做资料收集,不对商家任何信息及交易做信用担保,购买前请注意风险,有交易纠纷请自行解决!请查阅:特别声明

相关推荐

评论 抢沙发

评论前必须登录!