1、准备一台服务器并解析域名
- 解析域名:【点击进入】
2、下载SSH连接工具Finalshell:【点击进入】
3、安装Hysteria2
- 一键安装脚本
wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh
- 添加私钥的读写权限
chmod +rw /root/private.key
- Hysteria2相关命令
#启动Hysteria2
systemctl start hysteria-server.service
#重启Hysteria2
systemctl restart hysteria-server.service
#查看Hysteria2状态
systemctl status hysteria-server.service
#停止Hysteria2
systemctl stop hysteria-server.service
#设置开机自启
systemctl enable hysteria-server.service
#查看日志
journalctl -u hysteria-server.service