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

相关推荐
桦012 分钟前
Linux[配置vim]
linux·vim·excel
白总Server17 分钟前
智能座舱架构中芯片算力评估
linux·运维·服务器·开发语言·ai·架构·bash
Linux运维老纪2 小时前
Ansible 守护 Windows 安全(Ansible Safeguards Windows Security)
linux·windows·网络安全·自动化·云计算·运维开发·asible
bjzhang752 小时前
重启CentOS系统的rsyslogd服务
linux·centos·rsyslogd服务
Lw老王要学习2 小时前
Linux基础篇、第一章_01_3安装虚拟机手动安装部署Ubuntu22.04服务器
linux·运维·云计算
jsons12 小时前
Cliosoft安装
linux·运维·服务器
后院那片海2 小时前
Nginx核心功能
linux·服务器·nginx
运维实习生~2 小时前
Promtail+Loki+Grafana监控日志
linux·grafana
DO_Community2 小时前
企业出海降本:如何将应用从 AWS EC2 快速无缝迁移至DigitalOcean Droplet
服务器·aws·digitalocean
Mr-Apple3 小时前
docker安装Canal1.1.5,MySQL5.7踩坑
运维·docker·容器