Created
April 13, 2020 13:32
-
-
Save yanyuechuixue/8455aaa71f4fa2887da804392dbbb748 to your computer and use it in GitHub Desktop.
rclone service, rclone 服务, rclone systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
yum install -y fuse | |
``` | |
- 下载并编辑自启脚本(一旦不可用,GitHub 中有备份) | |
```shell | |
wget -N git.io/rcloned && nano rcloned | |
``` | |
- 修改内容: | |
```none | |
NAME="Onedrive" #Rclone配置时填写的name | |
REMOTE='' #远程文件夹,网盘里的挂载的一个文件夹,留空为整个网盘 | |
LOCAL='/Onedrive' #挂载地址,VPS本地挂载目录 | |
``` | |
- 设置开机自启 | |
```shell | |
mv rcloned /etc/init.d/rcloned | |
chmod +x /etc/init.d/rcloned | |
update-rc.d -f rcloned defaults # Debian/Ubuntu | |
chkconfig rcloned on # CentOS | |
bash /etc/init.d/rcloned start | |
``` | |
看到 `[信息] rclone 启动成功 !` 即可。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment