项目地址:https://github.com/gaoyb7/rclone-release
下载安装准备
复制链接下载并解压
wget https://github.com/gaoyb7/rclone-release/releases/download/v1_20230316/rclone_v1_20230316_Linux_x86_64.tar.gz tar -zxvf rclone_v1_20230316_Linux_x86_64.tar.gz
复制二进制文件至相关路径并赋予权限
cp rclone /usr/bin/ chown root:root /usr/bin/rclone chmod 755 /usr/bin/rclone
开始配置
rclone config
显示
No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n
键入n,选择1
键入名字
UID
CID
SEID
挂载
前置环境准备:
Linux 版本需要安装 fuse 依赖
环境
Debian 系如 Ubuntu:apt-get install -y fuse3
RedHat 系如 CentOS:yum install -y fuse3
示例:将网盘挂载到本地磁盘 /mnt/115drive 目录(/mnt/115drive 必须为空目录),115sm则为你的网盘名称:
rclone mount 115sm: /mnt/115drive --cache-dir /tmp --allow-other --attr-timeout 5m --vfs-cache-mode full --vfs-cache-max-age 24h --vfs-cache-max-size 10G --vfs-read-chunk-size-limit 100M --buffer-size 100M &
终端命令整个过程,可忽略
root@vps2634012:~# wget https://github.com/gaoyb7/rclone-release/releases/download/v1_20230316/rclone_v1_20230316_Linux_x86_64.tar.gz --2023-05-10 16:56:33-- https://github.com/gaoyb7/rclone-release/releases/download/v1_20230316/rclone_v1_20230316_Linux_x86_64.tar.gz Resolving github.com (github.com)... 140.82.113.3 Connecting to github.com (github.com)|140.82.113.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/536970018/5b60dc76-06bb-44ba-b4a5-dfe6620d0ee7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230510%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230510T165633Z&X-Amz-Expires=300&X-Amz-Signature=f81cc1075381bf3d5a5302d547af92696477e93856b2700336194c2a9c6ea98d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=536970018&response-content-disposition=attachment%3B%20filename%3Drclone_v1_20230316_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream [following] --2023-05-10 16:56:33-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/536970018/5b60dc76-06bb-44ba-b4a5-dfe6620d0ee7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230510%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230510T165633Z&X-Amz-Expires=300&X-Amz-Signature=f81cc1075381bf3d5a5302d547af92696477e93856b2700336194c2a9c6ea98d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=536970018&response-content-disposition=attachment%3B%20filename%3Drclone_v1_20230316_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 16720700 (16M) [application/octet-stream] Saving to: ‘rclone_v1_20230316_Linux_x86_64.tar.gz’ rclone_v1_20230316_Linux_x86_64 100%[======================================================>] 15.95M --.-KB/s in 0.07s 2023-05-10 16:56:33 (243 MB/s) - ‘rclone_v1_20230316_Linux_x86_64.tar.gz’ saved [16720700/16720700] root@vps2634012:~# tar -zxvf rclone_v1_20230316_Linux_x86_64.tar.gz README.md rclone root@vps2634012:~# cp rclone /usr/bin/ root@vps2634012:~# chown root:root /usr/bin/rclone root@vps2634012:~# chmod 755 /usr/bin/rclone root@vps2634012:~# rclone config No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n Enter name for new remote. name> 115sm Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. 1 / 115 drive \ (115) 2 / 1Fichier \ (fichier) 3 / Akamai NetStorage \ (netstorage) 4 / Alias for an existing remote \ (alias) 5 / Amazon Drive \ (amazon cloud drive) 6 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu and Wasabi \ (s3) 7 / Backblaze B2 \ (b2) 8 / Better checksums for other remotes \ (hasher) 9 / Box \ (box) 10 / Cache a remote \ (cache) 11 / Citrix Sharefile \ (sharefile) 12 / Combine several remotes into one \ (combine) 13 / Compress a remote \ (compress) 14 / Dropbox \ (dropbox) 15 / Encrypt/Decrypt a remote \ (crypt) 16 / Enterprise File Fabric \ (filefabric) 17 / FTP \ (ftp) 18 / Google Cloud Storage (this is not Google Drive) \ (google cloud storage) 19 / Google Drive \ (drive) 20 / Google Photos \ (google photos) 21 / HTTP \ (http) 22 / Hadoop distributed file system \ (hdfs) 23 / HiDrive \ (hidrive) 24 / In memory object storage system. \ (memory) 25 / Internet Archive \ (internetarchive) 26 / Jottacloud \ (jottacloud) 27 / Koofr, Digi Storage and other Koofr-compatible storage providers \ (koofr) 28 / Local Disk \ (local) 29 / Mail.ru Cloud \ (mailru) 30 / Mega \ (mega) 31 / Microsoft Azure Blob Storage \ (azureblob) 32 / Microsoft OneDrive \ (onedrive) 33 / OpenDrive \ (opendrive) 34 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ (swift) 35 / Oracle Cloud Infrastructure Object Storage \ (oracleobjectstorage) 36 / Pcloud \ (pcloud) 37 / Put.io \ (putio) 38 / QingCloud Object Storage \ (qingstor) 39 / SMB / CIFS \ (smb) 40 / SSH/SFTP \ (sftp) 41 / Sia Decentralized Cloud \ (sia) 42 / Storj Decentralized Cloud Storage \ (storj) 43 / Sugarsync \ (sugarsync) 44 / Transparently chunk/split large files \ (chunker) 45 / Union merges the contents of several upstream fs \ (union) 46 / Uptobox \ (uptobox) 47 / WebDAV \ (webdav) 48 / Yandex Disk \ (yandex) 49 / Zoho \ (zoho) 50 / premiumize.me \ (premiumizeme) 51 / seafile \ (seafile) Storage> 1 Option uid. UID from cookie Enter a value. uid> xxxxxxx Option cid. CID from cookie Enter a value. cid> xxxxxxx Option seid. SEID from cookie Enter a value. seid> xxxxxxx Edit advanced config? y) Yes n) No (default) y/n> Configuration complete. Options: - type: 115 - uid: xxxxxxx - cid: xxxxxxx - seid: xxxxxxx Keep this "115sm" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y Current remotes: Name Type ==== ==== 115sm 115 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 root@vps2634012:~# rclone mount 115sm: /mnt/115drive --cache-dir /tmp --allow-other --attr-timeout 5m --vfs-cache-mode full --vfs-cache-max-age 24h --vfs-cache-max-size 10G --vfs-read-chunk-size-limit 100M --buffer-size 100M & [1] 905289 root@vps2634012:~# df -h Filesystem Size Used Avail Use% Mounted on udev 2.0G 0 2.0G 0% /dev tmpfs 394M 696K 393M 1% /run /dev/vda4 2.0T 798G 1.2T 40% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/vda2 944M 115M 764M 14% /boot overlay 2.0T 798G 1.2T 40% tmpfs 394M 0 394M 0% /run/user/0 115sm:/ 145T 124T 21T 86% /mnt/115drive root@vps2634012:~#
文章有(1)条网友点评
可惜不能上传,无法填资源