diff --git a/content/self-host/install/_index.en.md b/content/self-host/install/_index.en.md index 8e0d961..61bb113 100644 --- a/content/self-host/install/_index.en.md +++ b/content/self-host/install/_index.en.md @@ -38,18 +38,26 @@ Run hbbs/hbbr on your server (Centos or Ubuntu). We suggust you use [pm2](https: ./hbbr -m ``` -{{% notice note %}} -**Please input `demo` for for trial.** -{{% /notice %}} +or run hbbs/hbbr with pm2 +``` +pm2 start hbbs -- -r -m +pm2 start hbbr -- -m +``` + + {{% notice note %}} -The -r parameter of hhbs is not necessary, it is just convenient for you not to specify a relay server on the client side. The relay server specified by the client has a higher priority than this. +**Please input `demo` for for trial** + +pm2 requires nodejs v16+, if you fail to run pm2 (e.g. you can not see hbbs/hbbr in `pm2 list`), please download and install LTS version nodejs from https://nodejs.org. If you wanna make hbbs/hbbr auto-run after reboot, please check out `pm2 save` and `pm2 startup`. More about [pm2](https://pm2.keymetrics.io/docs/usage/quick-start/). Another good tool for you log is [pm2-logrotate](https://github.com/keymetrics/pm2-logrotate). + +The `-r` parameter of hhbs is not necessary, it is just convenient for you not to specify a relay server on the client side. The relay server specified by the client has a higher priority than this. {{% /notice %}} By default, hbbs listens on 21114(tcp), 21115(tcp) and 21116(tcp/udp), 21118(tcp), hbbr listens on 21117(tcp), 21119(tcp). Be sure to open these ports in the firewall. **Please note that 21116 should be enabled both for TCP and UDP**. 21114 is for web console + API, 21115 is used for NAT type test, 21116/UDP is used for ID registration and heartbeat service, 21116/TCP is used for TCP hole punching and connection service, 21117 is used for Relay services, 21118 and 21119 are used to support web clients. If you do not need web console + API (21114) or web client (21118, 21119) support, the corresponding ports can be disabled. -- TCP(21114, 21115, 21116, 21117, 21118, 21119) -- UDP(21116) +- TCP(**21114, 21115, 21116, 21117, 21118, 21119**) +- UDP(**21116**) Please run with "-h" option to see help if you wanna choose your own port. diff --git a/content/self-host/install/_index.zh-cn.md b/content/self-host/install/_index.zh-cn.md index 17fddfa..d7e5f2d 100644 --- a/content/self-host/install/_index.zh-cn.md +++ b/content/self-host/install/_index.zh-cn.md @@ -37,18 +37,26 @@ Linux版本在Centos7构建,在 Centos7/8,Ubuntu 18/20上测试过,Debian ./hbbr -m ``` -{{% notice note %}} -**请为 输入 `demo` 进行试用。** -{{% /notice %}} +或者使用 pm2 运行 hbbs/hbbr +``` +pm2 start hbbs -- -r -m +pm2 start hbbr -- -m +``` + + {{% notice note %}} -hhbs的-r参数不是必须的,他只是方便你不用在客户端指定中继服务器。客户端指定的中继服务器优先级高于这个。 +**请为 输入 `demo` 运行试用** + +`pm2` 需要 nodejs v16+,如果你运行 pm2 失败(例如在 `pm2 list` 中看不到 hbbs/hbbr),请从 https://nodejs.org 下载并安装 LTS 版本的 nodejs。 如果你想让 hbbs/hbbr 在重启后自动运行,请查看 `pm2 save` 和 `pm2 startup`。 更多关于 [pm2](https://pm2.keymetrics.io/docs/usage/quick-start/)。另一个不错的日志工具是 [pm2-logrotate](https://github.com/keymetrics/pm2-logrotate)。 + +hhbs的`-r`参数不是必须的,他只是方便你不用在客户端指定中继服务器。客户端指定的中继服务器优先级高于这个。 {{% /notice %}} 默认情况下,hbbs 监听21114(tcp), 21115(tcp), 21116(tcp/udp), 21118(tcp),hbbr 监听21117(tcp), 21119(tcp)。务必在防火墙开启这几个端口, **请注意21116同时要开启TCP和UDP**。其中21114是网页控制台+API,21115是hbbs用作NAT类型测试,21116/UDP是hbbs用作ID注册与心跳服务,21116/TCP是hbbs用作TCP打洞与连接服务,21117是hbbr用作中继服务, 21118和21119是为了支持网页客户端。如果您不需要网页控制台+API(21114)或者网页客户端(21118,21119)支持,对应端口可以不开。 -- TCP(21114, 21115, 21116, 21117, 21118, 21119) -- UDP(21116) +- TCP(**21114, 21115, 21116, 21117, 21118, 21119**) +- UDP(**21116**) 如果你想选择**自己的端口**,使用 “-h” 选项查看帮助。 diff --git a/content/self-host/install/_index.zh-tw.md b/content/self-host/install/_index.zh-tw.md index ca9b29f..7e2eb8a 100644 --- a/content/self-host/install/_index.zh-tw.md +++ b/content/self-host/install/_index.zh-tw.md @@ -37,18 +37,29 @@ Linux版本在Centos7構建,在 Centos7/8,Ubuntu 18/20上測試過,Debian ./hbbr -m ``` -{{% notice note %}} -**請為 輸入 `demo` 進行試用。** -{{% /notice %}} +或者使用 pm2 運行 hbbs/hbbr +``` +pm2 start hbbs -- -r -m +pm2 start hbbr -- -m +``` + + {{% notice note %}} -hhbs的-r參數不是必須的,他只是方便你不用在客戶端指定中繼服務器。客戶端指定的中繼服務器優先級高於這個。 +**請為 輸入 `demo` 運行試用** + + +`pm2` 需要 nodejs v16+,如果你運行 pm2 失敗(例如在 `pm2 list` 中看不到 hbbs/hbbr),請從 https://nodejs.org 下載並安裝 LTS 版本的 nodejs。如果你想讓 hbbs/hbbr 在重啟後自動運行,請查看 `pm2 save` 和 `pm2 startup`。更多關於 [pm2](https://pm2.keymetrics.io/docs/usage/quick-start/)。另一個不錯的日誌工具是 [pm2-logrotate](https://github.com/keymetrics/pm2-logrotate)。 + + +hhbs的`-r`參數不是必須的,他只是方便你不用在客戶端指定中繼服務器。客戶端指定的中繼服務器優先級高於這個。 + {{% /notice %}} 默認情況下,hbbs 監聽21114(tcp), 21115(tcp), 21116(tcp/udp), 21118(tcp),hbbr 監聽21117(tcp), 21119(tcp)。務必在防火牆開啟這幾個端口, **請注意21116同時要開啟TCP和UDP**。其中21114是網頁控制台+API,21115是hbbs用作NAT類型測試,21116/UDP是hbbs用作ID註冊與心跳服務,21116/TCP是hbbs用作TCP打洞與連接服務,21117是hbbr用作中繼服務, 21118和21119是為了支持網頁客戶端。如果您不需要網頁控制台+API(21114)或者網頁客戶端(21118,21119)支持,對應端口可以不開。 -- TCP(21114, 21115, 21116, 21117, 21118, 21119) -- UDP(21116) +- TCP(**21114, 21115, 21116, 21117, 21118, 21119**) +- UDP(**21116**) 如果你想選擇**自己的端口**,使用 “-h” 選項查看幫助。 diff --git a/content/self-host/windows/_index.de.md b/content/self-host/windows/_index.de.md index 2e08fed..2ebfd88 100644 --- a/content/self-host/windows/_index.de.md +++ b/content/self-host/windows/_index.de.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.en.md b/content/self-host/windows/_index.en.md index d2eee25..61b7967 100644 --- a/content/self-host/windows/_index.en.md +++ b/content/self-host/windows/_index.en.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.fr.md b/content/self-host/windows/_index.fr.md index 4c71090..63088dc 100644 --- a/content/self-host/windows/_index.fr.md +++ b/content/self-host/windows/_index.fr.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.it.md b/content/self-host/windows/_index.it.md index 2e08fed..2ebfd88 100644 --- a/content/self-host/windows/_index.it.md +++ b/content/self-host/windows/_index.it.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.ja.md b/content/self-host/windows/_index.ja.md index 2e08fed..2ebfd88 100644 --- a/content/self-host/windows/_index.ja.md +++ b/content/self-host/windows/_index.ja.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.pt.md b/content/self-host/windows/_index.pt.md index 2e08fed..2ebfd88 100644 --- a/content/self-host/windows/_index.pt.md +++ b/content/self-host/windows/_index.pt.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.ru.md b/content/self-host/windows/_index.ru.md index 2e08fed..2ebfd88 100644 --- a/content/self-host/windows/_index.ru.md +++ b/content/self-host/windows/_index.ru.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.zh-cn.md b/content/self-host/windows/_index.zh-cn.md index 44d9418..c7a4bc2 100644 --- a/content/self-host/windows/_index.zh-cn.md +++ b/content/self-host/windows/_index.zh-cn.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 --- diff --git a/content/self-host/windows/_index.zh-tw.md b/content/self-host/windows/_index.zh-tw.md index 2b8f804..7e7abac 100644 --- a/content/self-host/windows/_index.zh-tw.md +++ b/content/self-host/windows/_index.zh-tw.md @@ -1,5 +1,5 @@ --- -title: Windows +title: Windows & pm2 weight: 20 ---