第一次提交

This commit is contained in:
wangbo 2025-11-22 12:37:04 +08:00
commit 5187b891b3
5 changed files with 40 additions and 0 deletions

13
config.yaml Normal file
View File

@ -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

16
hysteria-client.service Normal file
View File

@ -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

BIN
hysteria-linux-amd64 Normal file

Binary file not shown.

BIN
hysteria-linux-amd64-avx Normal file

Binary file not shown.

11
install.sh Normal file
View File

@ -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"