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

相关推荐
程序员JerrySUN13 分钟前
Linux 内核内存管理子系统全面解析与体系构建
java·linux·运维
CIb0la23 分钟前
Ai自动补全编程工具:llama vscode
运维·开发语言·学习·测试工具·程序人生
rui锐rui34 分钟前
大模型模型部署和暴露接口
linux·运维·服务器
Clownseven35 分钟前
云防火墙(安全组)配置指南:从入门到精通端口开放 (2025)
服务器·安全
BJ_Bonree41 分钟前
博睿数据×华为, 共筑智慧金融新未来
运维
孙克旭_1 小时前
day030-Shell自动化编程-函数
linux·运维·自动化
IT葛大侠1 小时前
OSPF域内路由
运维·网络·计算机网络
面朝大海,春不暖,花不开3 小时前
管理数据洪流:自动化处理与归档每日数据文件的策略与实践
运维·python·自动化
地衣君10 小时前
RISC-V 开发板 + Ubuntu 23.04 部署 open_vins 过程
linux·ubuntu·risc-v
5:0010 小时前
云备份项目
linux·开发语言·c++