Linux安装Syncthing步骤

cd /tmp
wget https://github.com/syncthing/syncthing/releases/download/v1.27.6/syncthing-linux-amd64-v1.27.6.tar.gz

tar xzvf syncthing-linux-amd64-v1.27.6.tar.gz

cd syncthing-linux-amd64-v1.27.6

cp syncthing /usr/local/bin
然后直接运行syncthing

停止,我的配置文件是在/root/.local/state/syncthing/config.xml
初次运行syncthing会在当前用户的用户目录下生成配置文件,比如现在使用的是root用户:

vim /root/.local/state/syncthing/config.xml
大概在第72行找到

127.0.0.1:8384
改成
0.0.0.0:8384
之后重启syncthing
syncthing
现在通过浏览器访问服务器IP地址就可以看到syncthing了:IP:8384