创建目录

mkdir sync
cd sync

安装

wget https://download-cdn.resilio.com/stable/linux-x64/resilio-sync_x64.tar.gz
tar zxvf resilio-sync_x64.tar.gz
./rslsync --dump-sample-config > sync.conf

启动Resilio-Sync

./rslsync --config sync.conf

查看监听端口

apt-get install net-tools
netstat -apn | grep rslsync

将程序加入自启动

nano /etc/rc.d/rc.local

c.local中加入

cd /root/sync
./rslsync –config sync.conf
如果是CentOS 7还需要执行

chmod +x /etc/rc.d/rc.local

运行后登陆浏览器输入http://ip地址:端口
默认端口是8888, 也可以在之前的sync.conf文件里面修改

最后修改:2021 年 08 月 26 日
如果觉得我的文章对你有用,请随意赞赏