- 安装Debian源
# Support for Https APT
apt-get install apt-transport-https
# 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:
apt-get update
apt-get install syncthing
- 创建启动用户
mkdir /home/syncthing
useradd syncthing -d /home/syncthing -s /bin/false
chown -R syncthing:syncthing /home/syncthing
- 用启动用户启动
systemctl enable syncthing@syncthing.service
systemctl start syncthing@syncthing.service
- 修改配置
cd /home/syncthing/.config/syncthing
vi config.xml
systemctl restart syncthing@syncthing
- 防火墙
数据通讯端口22000
管理端口8384
- 开始Enjoy
http://xxx.xxx.xxx.xxx:8384/
Written with StackEdit.
Comments