NekoBoxForAndroid配置Hysteria2

服务器安装Hysteria2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
root@bwg:~# bash <(curl -fsSL https://get.hy2.sh/)
Checking for installed version ... not installed
Checking for latest version ... v2.1.1
Downloading hysteria binary: https://github.com/apernet/hysteria/releases/download/app/v2.1.1/hysteria-linux-amd64 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13.0M  100 13.0M    0     0  15.4M      0 --:--:-- --:--:-- --:--:-- 36.0M
Installing hysteria executable ... ok
Install /etc/hysteria/config.yaml ... ok
Creating user hysteria ... ok
Install /etc/systemd/system/hysteria-server.service ... ok
Install /etc/systemd/system/[email protected] ... ok

Congratulation! Hysteria 2 has been successfully installed on your server.

What's next?

        + Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/
        + Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/
        + Edit server config file at /etc/hysteria/config.yaml
        + Start your hysteria server with systemctl start hysteria-server.service
        + Configure hysteria start on system boot with systemctl enable hysteria-server.service

配置文件/etc/hysteria/config.yaml示例如下:

0%