commit 5187b891b3035e076eccbb0c05a1363b38bbfd67 Author: wangbo Date: Sat Nov 22 12:37:04 2025 +0800 第一次提交 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..41eedd3 --- /dev/null +++ b/config.yaml @@ -0,0 +1,13 @@ +server: agentc.51easyai.com:8443 + +auth: eEA/H1sfaAPqk5tDV1Od/gGL + +bandwidth: + up: 40 mbps + down: 120 mbps + +socks5: + listen: 0.0.0.0:1080 + +http: + listen: 0.0.0.0:8088 \ No newline at end of file diff --git a/hysteria-client.service b/hysteria-client.service new file mode 100644 index 0000000..ab195e3 --- /dev/null +++ b/hysteria-client.service @@ -0,0 +1,16 @@ +[Unit] +Description=hysteria client +After=network.target + +[Service] +ExecStart=/root/hysteria/hysteria-linux-amd64-avx client -c /root/hysteria/config.yaml +Restart=always +User=root +RestartSec=5s +StartLimitInterval=30s +StartLimitBurst=5 +MemoryLimit=512M # 可选:限制内存使用以防止再次触发 OOM +LimitNOFILE=10240 # 可选:增加文件描述符限制(如果需要) + +[Install] +WantedBy=multi-user.target diff --git a/hysteria-linux-amd64 b/hysteria-linux-amd64 new file mode 100644 index 0000000..5631ea6 Binary files /dev/null and b/hysteria-linux-amd64 differ diff --git a/hysteria-linux-amd64-avx b/hysteria-linux-amd64-avx new file mode 100644 index 0000000..2b40a90 Binary files /dev/null and b/hysteria-linux-amd64-avx differ diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0cecd52 --- /dev/null +++ b/install.sh @@ -0,0 +1,11 @@ +cp ./hysteria-client.service /etc/systemd/system/hysteria-client.service + +#给执行文件加权限 +chmod +x ./hysteria-linux-amd64-avx +chmod +x ./hysteria-linux-amd64 + +systemctl daemon-reload +systemctl enable hysteria-client.service +systemctl start hysteria-client.service +systemctl status hysteria-client.service +echo "hysteria-client.service installed successfully" \ No newline at end of file