#SysAdmin
共 175 篇文章
解决 Linux 报错 useradd cannot lock etc passwd 锁死
分析 Linux 创建用户时提示 cannot lock /etc/passwd try again later 的锁文件残留根因与安全解除步骤。
解决 Docker 报错 Container is not running 的排查指南
排查与解决 Docker 执行 exec 进入容器提示 Container is not running 容器闪退终止的完整方案。
解决 wrk 报错 unable to connect to host: Too many open files 句柄耗尽修复
排查 运行 wrk 压测时控制台报错 unable to connect to host: Too many open files 或 hang 住不动,分析 终端 shell ulimit 软硬限制与系统级 file-max。
解决 Linux curl 报错 curl 28 Operation timed out 连接超时网络排障
排查 curl 提示 curl: (28) Operation timed out after 30000 milliseconds with 0 bytes received,使用 traceroute 与排查防火墙安全组丢包。
解决 SSH 报错 kex_exchange_identification: read: Connection reset by peer 修复
排查 SSH 握手初期抛出 kex_exchange_identification: read: Connection reset by peer 故障,分析 hosts.deny、并发连接过载与防火墙阻断。
解决 Linux 权限掩码 umask 配置不生效及存量文件异常
分析 Linux 修改 umask 发现已存在文件权限未变与新建默认权限不符合预期的八进制计算与 profile 持久化方案。
解决 HashiCorp Consul 报错 rpc error: No cluster leader Raft 选主与仲裁恢复
排查 HashiCorp Consul 集群突发 rpc error: No cluster leader 故障,深入分析 Raft 共识失活、脑裂与 peers.json 强制恢复仲裁。
解决 Linux 报错 -bash: fork: Cannot allocate memory 进程数耗尽修复
排查 Linux 终端执行任何命令均报 -bash: fork: Cannot allocate memory,分析 pid_max 上限、内存超分与进程分叉炸弹。
解决 Keepalived 报错 Cant find interface eth0 物理网卡失效修复
排查 Keepalived 启动报错 Cant find interface eth0 或 interface is down,分析 Linux 可预测网卡命名(ens/eno)变更。
解决 Linux 替换可执行文件报错 Text file busy (ETXTBSY) 机制与热更替换指南
排查 Linux 在部署更新正在运行的二进制程序时提示 Text file busy 错误,解析内核 ETXTBSY 保护与原子替换机制。
解决 Apache 报错 (98) Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 的排查指南
排查与解决 Apache 启动失败提示 Address already in use could not bind to address 80 端口被占用的完整方案。
解决 OpenSSL 报错 CRL has expired 证书吊销列表过期修复
排查 企业网关或 VPN 在对接入客户端执行双向证书吊销校验(CRL Verification)时,所有合法用户突发无法连接,报 verify error:num=12:CRL has expired,分析 crl.pem 自动更新周期与缓存刷新。
解决 SSH 报错 Agent admitted failure to sign using the key 修复
排查 SSH 登录抛出 Agent admitted failure to sign using the key,分析 ssh-agent 会话缓存失效与 ssh-add 重新加载私钥。
解决 Linux 报错 Too many open files 文件句柄超限指南
分析 Linux 系统在高并发网络连接下报 Too many open files 的根因,提供 nofile 与 fs.file-max 调优配置方案。
解决 Docker 报错 failed to initialize logging driver: json-file 的排查指南
排查与解决 Docker 容器启动提示 failed to initialize logging driver 日志驱动初始化失败的完整方案。
解决 SSH 报错 Bad owner or permissions on ~/.ssh/config 权限修复指南
排查 SSH 客户端在读取配置文件时提示 Bad owner or permissions on ~/.ssh/config 错误,深入分析权限安全模型与标准 chmod/chown 规范。
解决浏览器报错 net::ERR_CONNECTION_REFUSED 本地开发服务排查指南
排查访问 localhost 或本地开发服务器时浏览器提示 net::ERR_CONNECTION_REFUSED 错误,分析端口监听绑定、WSL 转发与防火墙阻断。
解决 Nginx 报错 502 Bad Gateway: connect() failed (111: Connection refused) 修复
排查 Nginx 反向代理提示 502 Bad Gateway 错误,分析后端进程宕机、本地端口监听失配与 Unix Socket 权限问题。
解决 Linux 报错 Cannot set new settings: Invalid argument 双工协商失败修复
排查 Linux 使用 ethtool 强制配置千兆万兆网卡速率报 Cannot set new settings: Invalid argument,分析 auto-negotiation 协商。
解决 NVIDIA 驱动 报错 Driver persistence mode disabled 唤醒延迟修复
排查 服务器每次调用 nvidia-smi 或启动 GPU 任务时有数秒严重卡顿,日志警告 Persistence mode is disabled for GPU,分析 驱动持久化守护进程(nvidia-persistenced)与设备初始化延迟。


