Hysteria 2 安装指南
- 将 hysteria-linux-amd64 改名为 hysteria,将它上传到 /usr/local/bin 目录
chmod +x /usr/local/bin/hysteria
- 下载配置
curl -Lo /root/hysteria_config.yaml https://raw.githubusercontent.com/chika0801/hysteria-install/main/config_server.yaml
- 下载systemctl配置
curl -Lo /etc/systemd/system/hysteria.service https://raw.githubusercontent.com/chika0801/hysteria-install/main/hysteria.service && systemctl daemon-reload
- 上传证书和私钥
- 将证书文件改名为 fullchain.cer,将私钥文件改名为 private.key,将它们上传到 /root 目录
- 启动程序
systemctl enable --now hysteria
项目 | |
---|---|
程序 | /usr/local/bin/hysteria |
配置 | /root/hysteria_config.yaml |
重启 | systemctl restart hysteria |
状态 | systemctl status hysteria |
查看日志 | journalctl -u hysteria --output cat -e |
实时日志 | journalctl -u hysteria --output cat -f |
systemctl disable --now hysteria
rm -f /usr/local/bin/hysteria /root/hysteria_config.yaml /etc/systemd/system/hysteria.service
-
下载Windows客户端程序hysteria-windows-amd64.exe,重命名为hysteria.exe,复制到v2rayN\bin\hysteria文件夹。
-
下载客户端配置config_client.yaml,修改chika.example.com为证书中包含的域名,修改10.0.0.1为VPS的IP。
-
服务器 ——> 添加自定义配置服务器 ——> 浏览 ——> 选择客户端配置 ——> Core类型 hysteria ——> Socks端口 50000
- sing-box:参考 sing-box Windows 客户端使用方法,将 sing-box Windows 客户端配置 进行如下修改。
原内容
{
"tag": "proxy",
// 粘贴你的客户端配置,需要保留 "tag": "proxy",
},
替换为
{
"type": "socks",
"tag": "proxy",
"server": "127.0.0.1",
"server_port": 50000
},
- v2rayN:参考 由 v2rayN 提供 http/socks5 代理。服务器 ——> 添加自定义配置服务器 ——> 浏览 ——> 选择客户端配置 ——> Core类型 tuic ——> Socks端口 0。