部署一台Hysteria2服务器

发布时间 2023-12-27 16:51:10作者: korin5

服务端配置文件

config.yaml 参考官方文档即可,我的配置:

acme:
  domains:
    - ryobot.one
  email: 66666@qq.com

auth:
  type: password
  password: Sdfsdfsdfsdf

运行

授予可执行文件 cap_net_bind_service 权限:

sudo setcap cap_net_bind_service=+ep ./hysteria-linux-amd64

授予执行权限:

sudo chmod 777 ./hysteria-linux-amd64

启动服务器:

./hysteria-linux-amd64 server

后台运行

使用 nohup 工具:

nohup ./hysteria-linux-amd64 server &

如何停止:

liang@liang:~# ps -aux | grep hysteria
root     18480  0.0  3.6 1241172 18368 pts/0   Sl   15:04   0:00 ./hysteria-linux-amd64 server
liang@liang:~# kill -9 18480

GUI客户端

分享链接格式:hysteria2://Sdfsdfsdfsdf@ryobot.one:443/

安卓:https://github.com/MatsuriDayo/NekoBoxForAndroid

windows:https://github.com/LorenEteval/Furious

Furious 开启VPN模式连接 Hysteria2 会出现内核意外终止