记录生产 MySQL 维护机白名单
This commit is contained in:
@@ -352,3 +352,15 @@
|
||||
- 处理方式:直接用 Node v24 执行全局 CLI JS:`E:\Development\Node\node-v24\node.exe E:\Development\Node\npm-global\node_modules\gitnexus\dist\cli\index.js detect-changes --scope staged -r JayuCloud`。
|
||||
- 以后避免:GitNexus 命令出现 `diagChan.tracingChannel` 时,先检查启动器实际使用的 Node,不要只检查外层 `node -v`。
|
||||
- 验证方式:`status` 和 `detect-changes --scope staged -r JayuCloud` 能正常返回仓库状态、变更文件数、影响流程和风险等级。
|
||||
|
||||
## 2026-07-23 CentOS 7 生产节点远端验证不要默认 Python 3
|
||||
|
||||
问题:在 `mysql02` 上验证 iptables 规则顺序和持久化状态时,远端 `python` 是 Python 2,使用 f-string 和 `pathlib` 的验证脚本失败。
|
||||
|
||||
原因:CentOS 7 默认 `python` 常指向 Python 2;生产节点不保证安装 `python3`,也不保证具备本地开发机上的新语法和标准库组合。
|
||||
|
||||
处理方式:远端生产验证改用 POSIX shell、`awk`、`grep`、`iptables` 等系统基础命令,或先显式检测 `python3` 后再使用 Python 3 语法。
|
||||
|
||||
以后避免:生产 SSH 临时脚本不要默认远端有 Python 3;涉及防火墙、systemd、端口和文件存在性验证时,优先使用目标系统自带命令并保持脚本兼容 CentOS 7。
|
||||
|
||||
验证方式:同一验证逻辑改为 shell/awk 后成功返回 allow 规则序号、deny 规则序号、顺序校验和持久化状态。
|
||||
|
||||
Reference in New Issue
Block a user