修补bug

This commit is contained in:
2026-04-09 18:19:23 +08:00
parent f84df652d9
commit 3d1a1c9711
2 changed files with 72 additions and 9 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# 快速重启脚本
echo "停止服务..."
systemctl stop go-api
pkill -f "go run main.go"
echo "启动服务..."
systemctl start go-api
echo "等待服务启动..."
sleep 3
echo "查看服务状态..."
systemctl status go-api --no-pager
echo ""
echo "查看最近日志..."
tail -n 20 /www/wwwroot/api.yunzer.cn/go.log