Files
Nexus/docs/changelog/2026-06-06-nx-god-menu-audit-round3-health-monitor.md
2026-07-08 22:31:31 +08:00

1.2 KiB
Raw Permalink Blame History

nx 上帝菜单巡检第三轮 — health_monitor Docker 适配

内容
日期 2026-06-06
动机 health_monitor.sh 仅 supervisorctlDocker 生产无效;验收/热同步仍有误报路径

变更摘要

  1. health_monitor.sh:识别 nexus-prod-nexus 容器 → docker restart;从 docker/.env.prod 读端口;从容器 /app/.env 读 Telegram;失败计数 flock;重启冷却 300s。
  2. install.py:守护配置更新 DEPLOY_DIR(修复原 INSTALL_DIR 正则不匹配)。
  3. sync-install-wizard:已归档时跳过全部热同步(避免无意义 restart)。
  4. verify-1panel:已安装时 print_next_steps 输出运维指引。
  5. install-nexus-fresh:已锁定安装时二次确认。

涉及文件

  • deploy/health_monitor.sh
  • server/api/install.py
  • deploy/sync-install-wizard-to-container.sh
  • deploy/verify-1panel-install-wizard.sh
  • deploy/install-nexus-fresh.sh

验证

bash -n deploy/health_monitor.sh
NEXUS_DEPLOY_DIR=/opt/nexus bash deploy/health_monitor.sh  # 健康时应 exit 0
bash deploy/verify-1panel-install-wizard.sh               # 已安装全 PASS