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

相关推荐
柯衍ky11 分钟前
Mac通过命令行开启ssh服务
运维·macos·ssh
_w_z_j_15 分钟前
Linux----进程控制
linux·运维·服务器
2501_9389639618 分钟前
服务器数据库安全:MySQL 开启 SSL 连接,禁止远程 root 登录并限制 IP 访问
服务器·mysql·ssl
Icoolkj20 分钟前
手机物理内存云共享—技术挑战与突破路径分析
java·服务器·智能手机
绵羊20236 小时前
单细胞转录组测序上游——cellranger
linux
chinesegf7 小时前
Docker篇4-本地项目app.py与docker加载项目镜像的开发顺序
运维·docker·容器
CyreneSimon7 小时前
Docker 拉取配置教程:解决镜像拉取连接超时问题
运维·docker·容器
李子红了时7 小时前
【墨铺网教程】一台电脑加入多个局域网,让电脑做上传下载主力又当存储盘
运维·服务器·电脑
Awkwardx9 小时前
Linux系统编程—线程同步与互斥
linux·服务器
snpgroupcn9 小时前
Adobe SAP S/4HANA 升级实践:企业规模化转型关键要素
运维·adobe·云计算