第一次提交

This commit is contained in:
2025-11-22 12:37:04 +08:00
commit 5187b891b3
5 changed files with 40 additions and 0 deletions
+16
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