Hysteria 2 Installation guide
- 将 hysteria-linux-amd64 Changed its name to hysteria,Upload it to /usr/local/bin Table of contents,Execute the following command
chmod +x /usr/local/bin/hysteria
- Download configuration
curl -Lo /root/hysteria_config.yaml https://raw.githubusercontent.com/chika0801/hysteria-install/main/config_server.yaml
- Download systemd configuration
curl -Lo /etc/systemd/system/hysteria.service https://raw.githubusercontent.com/chika0801/hysteria-install/main/hysteria.service && systemctl daemon-reload
- Upload certificate and private key
- Rename the certificate file to fullchain.cer,Rename the private key file to private.key,Upload them to /root Table of contents
- Start the program
systemctl enable --now hysteria
project | |
---|---|
program | /usr/local/bin/hysteria |
Placement | /root/hysteria_config.yaml |
restart | systemctl restart hysteria |
status | systemctl status hysteria |
View log | journalctl -u hysteria -o cat -e |
Real-time log | journalctl -u hysteria -o cat -f |
systemctl disable --now hysteria && rm -f /usr/local/bin/hysteria /root/hysteria_config.yaml /etc/systemd/system/hysteria.service
-
Download the Windows client program hysteria-windows-amd64.exe,Rename to hysteria.exe,Copy to v2rayN\bin\hysteria folder.
-
Download client configuration config_client.yaml,modify chika.example.com Is the domain name contained in the certificate ,修改10.0.0.1为VPS的IP。
-
v2rayN:服务器 ——> 添加自定义配置服务器 ——> 浏览 ——> 选择客户端配置 ——> Core类型 hysteria ——> Socks端口 50000
- sing-box:Reference Windows How to use ,Will client configuration](https://github.com/chika0801/sing-box-examples/blob/main/Tun/config_client_windows.json)Make the following changes。
原内容
{
"tag": "proxy",
// Paste your client configuration,Need to keep "tag": "proxy",
},
Replace with
{
"type": "socks",
"tag": "proxy",
"server": "127.0.0.1",
"server_port": 50000
},
- v2rayN:server ——> Add a custom configuration server ——> browse ——> Select client configuration ——> Coretype hysteria ——> Socks port 0。