Syncthing official website: https://syncthing.net/
Look here to download the file path:
Download and unzip the file:
# 下载
wget https://github.com/syncthing/syncthing/releases/download/v1.2.2/syncthing-linux-amd64-v1.2.2.tar.gz
# 解压
tar -zxvf syncthing-linux-amd64-v1.2.2.tar.gz
Run a service:
# 进入解压目录
cd ./syncthing-linux-amd64-v1.2.2/
# 启动syncthing
./syncthing
Operating normally you can turn off the service, the service start address modification "/root/.config/syncthing/config.xml" configuration file:
<address>0.0.0.0:8384</address>
Restart the service:
./syncthing
After starting address can access the " HTTP: // server IP: 8384 / " configure:
After you configure shared folders and remote devices, and then bind the folder with the device to sync automatically.
The following is a supervisor from the start configuration, supervisor installation see " [Study] Section Docker: Docker + Alpine + Openssh + Supervisor deploy Linux basic environment ":
[program:syncthing]
# syncthing 为程序的名称
# 需要执行的命令
command=/root/syncthing-linux-amd64-v1.2.2/syncthing -no-browser -home="/root/.config/syncthing"
# 命令执行的目录
directory=/root/
# 环境变量
environment = STNORESTART="1", HOME="/root/"
# 用户
user=root
stopsignal=INT
# 是否自启动
autostart=true
# 是否自动重启
autorestart=true
# 自动重启时间间隔(s)
startsecs=3
# 错误日志文件
stderr_logfile=/var/log/syncthing.err.log
# 输出日志文件
stdout_logfile=/var/log/syncthing.out.log
This service completed structures.