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). 

外部链接