「Syncthing」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
行 11: 行 11:
== 設定 ==
== 設定 ==


Syncthing預設會用到<code>22000/tcp</code>與</code>21027/udp</code>,可以分開設定,或是直接使用Syncthing包裝好的設定<ref>{{Cite web |url=https://docs.syncthing.net/users/firewall.html |title=Firewall Setup |accessdate=2020-08-14 |language=en}}</ref>:
Syncthing預設會用到<code>22000/tcp</code>與<code>21027/udp</code>,可以分開設定,或是直接使用Syncthing包裝好的設定<ref>{{Cite web |url=https://docs.syncthing.net/users/firewall.html |title=Firewall Setup |accessdate=2020-08-14 |language=en}}</ref>:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

於 2020年8月14日 (五) 11:27 的修訂

Syncthing是一套資料同步軟體。

安裝

Ubuntu下可以透過apt repository安裝[1]

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -; echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list; sudo apt update; sudo apt install -y syncthing

設定

Syncthing預設會用到22000/tcp21027/udp,可以分開設定,或是直接使用Syncthing包裝好的設定[2]

sudo ufw allow syncthing

在開機時自動執行[3],這邊是透過systemd的方式:

sudo systemctl enable syncthing@myuser.service; sudo systemctl start syncthing@myuser.service

接下來可以連到本機端的管理界面上操作:

參考資料

  1. Downloads. [2020-08-14] (English). 
  2. Firewall Setup. [2020-08-14] (English). 
  3. Starting Syncthing Automatically. [2020-08-14] (English). 

外部連結