syncthing 多设备同步

【精选】linux间文件实时同步(syncthing) ---带历史版本"后悔药"_syncthing linux_井底蛙-jdw的博客-CSDN博客https://blog.csdn.net/qq_41355314/article/details/116694273

复制代码
wget https://gh-proxy.com/https://github.com/syncthing/syncthing/releases/download/v1.26.1/syncthing-linux-amd64-v1.26.1.tar.gz --no-check-certificate

tar -xzvf syncthing-linux-amd64-v1.26.1.tar.gz
mv syncthing-linux-amd64-v1.26.1 syncthing
cp syncthing /usr/local


./syncthing  或者
nohup syncthing &> /dev/null &

默认只能: localhost: 8384 访问,如果想公网。 
配置文件地址:
 /root/.config/syncthing/

vi /root/.config/syncthing/config.xml

开机自启动:

复制代码
vi  /etc/systemd/system/syncthing.service

[Unit]
Description=Syncthing File Synchronization Service
After=network.target

[Service]
User=root
ExecStart=/usr/local/syncthing/syncthing serve --no-browser --no-restart --logflags=0
Restart=on-failure
RestartSec=10
StartLimitInterval=300
StartLimitBurst=3

[Install]
WantedBy=default.target






sudo systemctl daemon-reload
sudo systemctl enable syncthing.service

sudo systemctl start syncthing.service
sudo systemctl status syncthing.service

sudo chmod +x /usr/local/syncthing/syncthing

sudo chmod 644 /etc/systemd/system/syncthing.service

相关推荐
..过云雨18 分钟前
04.【Linux系统编程】基础开发工具2(makefile、进度条程序实现、版本控制器Git、调试器gdb/cgdb的使用)
linux·笔记·学习
zzzsde29 分钟前
【Linux】初识Linux
linux·运维·服务器
fouryears_2341734 分钟前
云服务器使用代理稳定与github通信方法
运维·服务器·github
渡我白衣37 分钟前
Linux网络:应用层协议http
linux·网络·http
pofenx1 小时前
使用nps创建隧道,进行内网穿透
linux·网络·内网穿透·nps
Ronin3051 小时前
【Linux系统】单例式线程池
linux·服务器·单例模式·线程池·线程安全·死锁
wanhengidc1 小时前
手机云服务是什么意思?
运维·网络·安全·游戏·智能手机
desssq1 小时前
ubuntu 18.04 泰山派编译报错
linux·运维·ubuntu
Lzc7741 小时前
Linux的多线程
linux·linux的多线程
清风笑烟语1 小时前
Ubuntu 24.04 搭建k8s 1.33.4
linux·ubuntu·kubernetes