Files
telegram-management-system/check-services.sh
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:37:50 +08:00

43 lines
1.2 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "=== Telegram管理系统服务状态检查 ==="
echo ""
# 检查后端服务
echo "1. 后端服务状态:"
if curl -s http://localhost:3000/health > /dev/null 2>&1; then
echo " ✅ 后端服务运行中 (端口: 3000)"
echo " API健康检查: $(curl -s http://localhost:3000/health | head -c 50)..."
else
echo " ❌ 后端服务未运行"
fi
# 检查前端服务
echo ""
echo "2. 前端服务状态:"
if curl -s http://localhost:8890 > /dev/null 2>&1; then
echo " ✅ 前端服务运行中 (端口: 8890)"
echo " 访问地址: http://localhost:8890"
else
echo " ❌ 前端服务未运行"
fi
# 检查Socket.IO服务
echo ""
echo "3. Socket.IO服务状态"
if lsof -i :3001 | grep LISTEN > /dev/null 2>&1; then
echo " ✅ Socket.IO服务运行中 (端口: 3001)"
else
echo " ❌ Socket.IO服务未运行"
fi
# 检查进程
echo ""
echo "4. 相关进程:"
ps aux | grep -E "telegram-management" | grep -v grep | awk '{print " PID:", $2, "- 内存:", $4"%", "- 命令:", $11, $12}' | head -5
echo ""
echo "=== 快速访问 ==="
echo "前端界面: http://localhost:8890"
echo "后端API: http://localhost:3000"
echo ""