增加局域网访问
This commit is contained in:
+3
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user