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

用GCP白票中转与下载

locvps
主机参考: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&storage to configure.
  8. Enter a string value. Press Enter for the default (“”).
  9. Choose a number from below, or type in your own value
  10. 1 / 1Fichier
  11.     “fichier”
  12. 2 / Alias for an existing remote
  13.     “alias”
  14. 3 / Amazon Drive
  15.     “amazon cloud drive”
  16. 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
  17.     “s3”
  18. 5 / Backblaze B2
  19.     “b2”
  20. 6 / Box
  21.     “box”
  22. 7 / Cache a remote
  23.     “cache”
  24. 8 / Citrix Sharefile
  25.     “sharefile”
  26. 9 / Dropbox
  27.     “dropbox
  28. 10 / Encrypt/Decrypt a remote
  29.     “crypt”
  30. 11 / FTP Connection
  31.     “ftp
  32. 12 / Google Cloud Storage (this is not Google Drive)
  33.     “google cloud storage”
  34. 13 / Google Drive
  35.     “drive”
  36. 14 / Google Photos
  37.     “google photos”
  38. 15 / Hubic
  39.     “hubic”
  40. 16 / In memory object storage system.
  41.     “memory”
  42. 17 / JottaCloud
  43.     “jottacloud”
  44. 18 / Koofr
  45.     “koofr”
  46. 19 / Local Disk
  47.     “local”
  48. 20 / Mail.ru Cloud
  49.     “mailru”
  50. 21 / Mega
  51.     “mega
  52. 22 / Microsoft Azure Blob Storage
  53.     “azureblob”
  54. 23 / Microsoft OneDrive
  55.     “onedrive
  56. 24 / OpenDrive
  57.     “opendrive”
  58. 25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
  59.     “swift”
  60. 26 / Pcloud
  61.     “pcloud”
  62. 27 / Put.io
  63.     “putio”
  64. 28 / QingCloud Object Storage
  65.     “qingstor”
  66. 29 / SSH/SFTP Connection
  67.     “sftp
  68. 30 / Sugarsync
  69.     “sugarsync”
  70. 31 / Transparently chunk/split large files
  71.     “chunker”
  72. 32 / Union merges the contents of several remotes
  73.     “union”
  74. 33 / Webdav
  75.     “webdav
  76. 34 / Yandex Disk
  77.     “yandex
  78. 35 / http Connection
  79.     “http
  80. 36 / premiumize.me
  81.     “premiumizeme”
  82. Storage&ee help for drive backend at: https://rclone.org/drive/ **
  83. Google Application Client Id
  84. Setting your own is recommended.
  85. See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
  86. If you leave this blank, it will use an internal key which is low performance.
  87. Enter a string value. Press Enter for the default (“”).
  88. client_id&pplication Client Secret
  89. Setting your own is recommended.
  90. Enter a string value. Press Enter for the default (“”).
  91. client_secret&access from drive.
  92. Enter a string value. Press Enter for the default (“”).
  93. Choose a number from below, or type in your own value
  94. 1 / Full access all files, excluding Application Data Folder.
  95.     “drive”
  96. 2 / Read-only access to file metadata and file contents.
  97.     “drive.readonly”
  98.    / Access to files created by rclone only.
  99. 3 | These are visible in the drive website.
  100.    | File authorization is revoked when the user deauthorizes the app.
  101.     “drive.file”
  102.    / Allows read and write access to the Application Data folder.
  103. 4 | This is not visible in the drive website.
  104.     “drive.appfolder”
  105.    / Allows read-only access to file metadata but
  106. 5 | does not allow any access to read or download file content.
  107.     “drive.metadata.readonly”
  108. scope&rmally.
  109. Fill in to access “Computers” folders (see docs), or for rclone to use
  110. a non root folder as its starting point.
  111. Note that if this is blank, the first time rclone runs it will fill it
  112. in with the ID of the root folder.
  113. Enter a string value. Press Enter for the default (“”).
  114. root_folder_id&ON file path
  115. Leave blank normally.
  116. Needed only if you want use SA instead of interactive login.
  117. Enter a string value. Press Enter for the default (“”).
  118. service_account_file&dvanced config? (y/n)
  119. y) Yes
  120. n) No (default)
  121. y/n&rking on a remote or headless machine
  122. y) Yes (default)
  123. n) No
  124. y/n&wing 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
  125.   #复制地址浏览器登录授权 然后粘贴授权
  126. Log in and authorize rclone for access
  127. Enter verification code&oken = {“access_token”:”******************************************************************”,”token_type”:”Bearer”,”refresh_token”:”********************************************”,”expiry”:”lete this remote
  128. y/e/d&uit config
  129. 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白票中转与下载
主机参考仅做资料收集,不对商家任何信息及交易做信用担保,购买前请注意风险,有交易纠纷请自行解决!请查阅:特别声明

评论 抢沙发

评论前必须登录!