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

相关推荐
勉灬之1 分钟前
基于 Node.js + mysql2 的实用同步助手,适合开发/测试环境下快速对齐表数据
服务器·网络·node.js
很㗊4 分钟前
Linux --- tar命令常见用法
linux·运维·服务器
2501_941329725 分钟前
气压表智能读数检测:基于YOLOv8的指针与刻度识别实现自动化读数
运维·yolo·自动化
飞凌嵌入式6 分钟前
嵌入式AI领域的主控选择
linux·arm开发·人工智能·嵌入式硬件
RisunJan7 分钟前
Linux命令-ld(将目标文件连接为可执行程序)
linux·运维·服务器
猫猫的小茶馆13 分钟前
【Linux 驱动开发】四. 平台总线驱动
linux·c语言·arm开发·驱动开发·嵌入式硬件·mcu·物联网
济61714 分钟前
linux--Cortex-A7架构-- Ubuntu20.04
linux·运维·架构
无心水16 分钟前
4、Go语言程序实体详解:变量声明与常量应用【初学者指南】
java·服务器·开发语言·人工智能·python·golang·go
运维栈记16 分钟前
Claude Code 与 MCP 服务器使用指南
运维·ai
init_236119 分钟前
【HCIE-08】NAT64
linux·服务器·网络