嘟嘟社区

[经验] Debian 11 安装 Resilio Sync


本帖最后由 zxxx 于 2022-5-16 08:57 编辑

1、安装 Resilio Sync

  1. cat << "EOF" > /etc/apt/sources.list.d/resilio-sync.list
  2. deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
  3. EOF
  4. wget -qO – https://linux-packages.resilio.com/resilio-sync/key.asc | apt-key add –
  5. apt update && apt install resilio-sync

复制代码

2、配置 Resilio Sync

  1. systemctl stop resilio-sync && systemctl disable resilio-sync && userdel rslsync -rf
  2. sed -i ‘s/WantedBy=multi-user.target/WantedBy=default.target/’ /usr/lib/systemd/user/resilio-sync.service
  3. systemctl –user enable resilio-sync && systemctl –user start resilio-sync && systemctl –user stop resilio-sync
  4. sed -i ‘s/127.0.0.1/0.0.0.0/’ /root/.config/resilio-sync/config.json &&
  5. sed -i ‘s/true/false/’ /root/.config/resilio-sync/config.json
  6. cat << "EOF" > /root/.config/resilio-sync/resilio-sync.btkey
  7. btos1_eyJzIjogIm5xNjRmNGgrWDhxWHFiaWRodEtyTWdNcEVaMHdYaUJLbExwSWFwSDUxMzkyaHdqMFFpQWJOTTFGd2JGWGpJQ0FhV2w4V3ZidVpPenpITXZmNTRLWU1XVGVsVFZjS3JGQUpYMmVUMGttT2lCMm8zQ1BjVFd2VWlCLzRsTTlQN1FsalVSVzREMVFNUktWcEhwaG5IVzIvZmdqN05MaThmMnhNa1NDNERwRVVpQ0pXZHpPWXFIbW1OMFdOUEt6QWg4RkJoanNvUVNBa1hKN09WS0c5WElkVTczWnNlVWNxWW1WVUo0WDc0S05wYmlYZk0vemlsU2pIK0U5Y3ZMZ092YlplVjlCZXlveDNwT3pRYUJOeFNQT3FYWEpTRHE1bVRhRXMvWGppVGtJV21uVHJudVJnb01DZ0RBOHdBS3RIYjRvVkduWm1jeU8xNlhoQ3dvL2VkeHFxZz09IiwgImQiOiAiZXlKamF5STZJQ0ppZEc5ell6RmZaWGxLYW1ONVNUWkpRMHBJVlZoYVYxRldUakZsVldo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

  1. systemctl –user start resilio-sync

复制代码

查看状态

  1. systemctl –user status resilio-sync

复制代码

4、连接 Resilio Sync

http://1.2.3.4:8888

  1. /root/.config/resilio-sync/resilio-sync.btkey

复制代码

这玩意是干啥用的
+1干啥用的啊大佬?
本帖最后由 zxxx 于 2022-5-16 10:15 编辑

P2P 文件分享,测试密钥 BXTAXXRCESRD6ZXRKBC6CTUC3QI2ZRAG4

感觉还是用docker部署方便点

美图秀秀 发表于 2022-5-16 09:10
感觉还是用docker部署方便点

https://hub.docker.com/r/linuxserver/resilio-sync
A Resilio Sync container, brought to you by LinuxServer.io.  

https://hub.docker.com/r/resilio/sync/
Sync uses peer-to-peer technology to provide fast, private file sharing for teams and individuals.

这两个选择哪个好些?

zxxx 发表于 2022-5-16 09:09
BXTAXXRCESRD6ZXRKBC6CTUC3QI2ZRAG4

大佬,研究的挺多呀

有公网IP 还是rsync比较好  

zxxx 发表于 2022-5-16 09:13
https://hub.docker.com/r/linuxserver/resilio-sync
A Resilio Sync container, brought to you by Linu …

我上次用的是resilio/sync这个,另一个没试过

fyfy010 发表于 2022-5-16 09:05
+1干啥用的啊大佬?

Resilio Sync(曾经名为“BitTorrent Sync”)是由BitTorrent公司开发的专有的对等网络数据同步工具,可在Windows、OS X、Linux、Android、iOS和FreeBSD上使用。其可在局域网、互联网上通过安全的、分布式的P2P技术在不同设备之间同步文件。