增加局域网访问

This commit is contained in:
dekun
2026-05-19 01:00:26 +08:00
parent 0203a65973
commit 4ad0ebe581
7 changed files with 53 additions and 19 deletions
+3 -1
View File
@@ -19,6 +19,8 @@ pm2 start ecosystem.config.cjs
pm2 save 2>/dev/null || true
echo ""
echo "已启动。访问: http://127.0.0.1:5200"
LAN_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
echo "已启动。本机: http://127.0.0.1:5200"
echo "局域网: http://${LAN_IP:-<你的IP>}:5200"
echo "查看状态: pm2 status"
echo "查看日志: pm2 logs api-key-manager"