Resilio Sync(曾经名为“BitTorrent Sync”)是由BitTorrent公司开发的专有的对等网络数据同步工具,可在Windows、OS X、Linux、Android、iOS和FreeBSD上使用。其可在局域网、互联网上通过安全的、分布式的P2P技术在不同设备之间同步文件。
具体步骤
1、安装 Resilio Sync
cat << "EOF" > /etc/apt/sources.list.d/resilio-sync.list
deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
EOF
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | apt-key add -
apt update && apt install resilio-sync
2、配置 Resilio Sync
systemctl stop resilio-sync && systemctl disable resilio-sync && userdel rslsync -rf
sed -i 's/WantedBy=multi-user.target/WantedBy=default.target/' /usr/lib/systemd/user/resilio-sync.service
systemctl --user enable resilio-sync && systemctl --user start resilio-sync && systemctl --user stop resilio-sync
sed -i 's/127.0.0.1/0.0.0.0/' /root/.config/resilio-sync/config.json && \
sed -i 's/true/false/' /root/.config/resilio-sync/config.json
cat << "EOF" > /root/.config/resilio-sync/resilio-sync.btkey
btos1_eyJzIjogIm5xNjRmNGgrWDhxWHFiaWRodEtyTWdNcEVaMHdYaUJLbExwSWFwSDUxMzkyaHdqMFFpQWJOTTFGd2JGWGpJQ0FhV2w4V3ZidVpPenpITXZmNTRLWU1XVGVsVFZjS3JGQUpYMmVUMGttT2lCMm8zQ1BjVFd2VWlCLzRsTTlQN1FsalVSVzREMVFNUktWcEhwaG5IVzIvZmdqN05MaThmMnhNa1NDNERwRVVpQ0pXZHpPWXFIbW1OMFdOUEt6QWg4RkJoanNvUVNBa1hKN09WS0c5WElkVTczWnNlVWNxWW1WVUo0WDc0S05wYmlYZk0vemlsU2pIK0U5Y3ZMZ092YlplVjlCZXlveDNwT3pRYUJOeFNQT3FYWEpTRHE1bVRhRXMvWGppVGtJV21uVHJudVJnb01DZ0RBOHdBS3RIYjRvVkduWm1jeU8xNlhoQ3dvL2VkeHFxZz09IiwgImQiOiAiZXlKamF5STZJQ0ppZEc5ell6RmZaWGxLYW1ONVNUWkpRMH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、启动 Resilio Sync
systemctl --user start resilio-sync
查看状态
systemctl --user status resilio-sync
4、连接 Resilio Sync
http://IP:8888
/root/.config/resilio-sync/resilio-sync.btkey
配置完毕,可以愉快的使用了。
网络信息,由52VPS整理收集,如若转载,请注明出处:https://www.52vps.com/1317.html