增加局域网访问

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
@@ -57,7 +57,9 @@ echo ""
echo "=========================================="
echo " 安装完成"
echo " 目录: ${INSTALL_DIR}"
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"
echo "=========================================="