環境:
CentOS8
功能:使用synthing可以將本地電腦文件夾和服務器同步。
運行狀態:
[root@CJ-server syncthing]# ./syncthing
[monitor] 09:02:53 INFO: Default folder created and/or linked to new config
[start] 09:02:53 INFO: syncthing v1.13.0 "Fermium Flea" (go1.15.7 linux-amd64) teamcity@build.syncthing.net 2021-01-11 14:15:21 UTC
[start] 09:02:53 INFO: Generating ECDSA key and certificate for syncthing...
[start] 09:02:53 INFO: Default folder created and/or linked to new config
[start] 09:02:53 INFO: Default config saved. Edit /root/.config/syncthing/config.xml to taste (with Syncthing stopped) or use the GUI
[start] 09:02:53 INFO: Archiving a copy of old config file format at: /root/.config/syncthing/config.xml.v0
[start] 09:02:58 INFO: Upgrade available (current "v1.13.0" < latest "v1.13.1")
下載
下載地址:https://syncthing.net/downloads/
防火牆放通默認 8384 和22000端口,防火牆和運營商安全組
./syncthing
默認配置文件在/root/.config/syncthing/config.xml
找到gui設置,修改127.0.0.1:8384 == 0.0.0.0:8384 如果想修改端口可能
瀏覽器打開web界面,設置用戶密碼
客戶端,下載window amd64,直接解壓,然后雙擊exe程序
本地也打開web界面
http://127.0.0.1:8384
如果在局域網添加服務器,必須手動設置服務器地址才行
WIN10客戶端使用計划任務實現開機啟動
linux使用systemctl啟動
使用任務計划開機啟動syncthing
服務器端。
找到計算機任務計划程序
創建任務-->設置名稱-->啟動的選項-->觸發器:當系統啟動時-->新建操作,選擇路徑,可選參數添加 -no-console -no-browser 不出現小黑窗口和網頁登錄。
設置條件-->然后輸入管理員賬號,嘗試重啟。
客戶端添加服務器端通過添加遠程設備選型,然后用ID進行添加,服務器端同意添加。