更新 Syncthing文件同步搭建
@@ -76,10 +76,14 @@ systemctl status stdiscosrv
|
|||||||
|
|
||||||
- Linux
|
- Linux
|
||||||
```
|
```
|
||||||
|
#创建启动用户
|
||||||
|
|
||||||
|
|
||||||
#下载安装包并解压
|
#下载安装包并解压
|
||||||
tar -zxvf tar -zxvf syncthing-linux-amd64-v1.29.6.tar.gz -C /opt
|
tar -zxvf tar -zxvf syncthing-linux-amd64-v1.29.6.tar.gz -C /opt
|
||||||
mv /opt/syncthing-linux-amd64-v1.29.6 /opt/syncthing
|
mv /opt/syncthing-linux-amd64-v1.29.6 /opt/syncthing
|
||||||
|
|
||||||
|
|
||||||
#创建启动文件:vim /etc/systemd/system/syncthing.service
|
#创建启动文件:vim /etc/systemd/system/syncthing.service
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
@@ -88,8 +92,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=st
|
||||||
Group=root
|
Group=st
|
||||||
ExecStart=/opt/syncthing/syncthing serve
|
ExecStart=/opt/syncthing/syncthing serve
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
Reference in New Issue
Block a user