This commit is contained in:
jackyu66git
2025-05-22 12:38:02 +08:00
parent fa3cb6c96b
commit a1e033432b
10 changed files with 577 additions and 12 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# 检查gunicorn进程
echo "Gunicorn进程状态:"
ps aux | grep gunicorn | grep -v grep
# 检查端口
echo -e "\n端口8123状态:"
netstat -tulpn 2>/dev/null | grep 8123 || echo "端口8123未被占用"
# 检查日志文件最后几行
echo -e "\n访问日志(最后5行):"
tail -n 5 logs/access.log 2>/dev/null || echo "访问日志尚未创建"
echo -e "\n错误日志(最后5行):"
tail -n 5 logs/error.log 2>/dev/null || echo "错误日志尚未创建"