本文介绍
rclone config
回车C:\Users\Administrator\AppData\Roaming\rclone\rclone.conf
自行替换Administrator为你自己的用户目录。将它复制到一个好找的地方。下面有用。yum install fuse3 -y
进行安装wget https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip mv rclone-v* rclonecnf
/usr/local/bin
方便调用ln -s /root/rclonecnf/rclone /usr/local/bin/rclone
rclone.confg
文件上传至/root/rclonecnf/
目录中md /oklaidrv
cd /root/rclonecnf/ ./rclone mount oklaidrv: /oklaidrv --allow-other --allow-non-empty --vfs-cache-mode writes
/usr/lib/systemd/system/
中创建一个rclone.service
的文件[Unit] Description=rclone [Service] User=root ExecStart=/usr/local/bin/rclone mount oklaidrv: /oklaidrv --use-mmap --umask 000 --allow-other --allow-non-empty --dir-cache-time 24h --cache-dir=/root/.cache --vfs-cache-mode full --buffer-size 256M --vfs-read-chunk-size 1M --vfs-read-chunk-size-limit 32M --vfs-cache-max-size 1G Restart=on-abort [Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl start rclone systemctl enable rclone