安装参考:https://apt.syncthing.net/这只支持Debian/Ubuntu,其他发行版还是乖乖去github找二进制吧
# 稳定版 stable
# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing
# 修改配置文件,不然其他主机访问不了
sudo nano ~/.config/syncthing/config.xml
# 找到这一行把127.0.0.1改成0.0.0.0
<address>127.0.0.1:8384</address>
我很好奇为什么不可以 systemctl
hang@orangepipc:~/wygdbb$ sudo systemctl enable syncthing
Failed to enable unit: Unit file syncthing.service does not exist.
# 只能& 大法了。。。
syncthing &
网友评论