Nginx 错误错误
invalid PID numberinvalid PID number — PID 文件无效
Nginx PID 文件中包含无效的进程 ID。
nginxserver
查看详情 no resolver defined to resolveNginx 需要解析主机名,但未配置 DNS 解析器。
proxy_pass 或 upstream 块使用了主机名,但 Nginx 没有 resolver 指令来执行 DNS 查询。
在 http、server 或 location 块中添加 resolver 8.8.8.8;(或您的 DNS 服务器)。在 upstream 块中改用静态 IP 地址。
# Add resolver directive
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;invalid PID numberNginx PID 文件中包含无效的进程 ID。
504 Gateway TimeoutNginx 等待上游服务器响应超时。
worker_connections are not enoughNginx worker 进程已达到最大连接数上限。
upstream sent too big header while reading response header from upstream上游服务器发送的响应头超出了 Nginx 的缓冲区大小。
414 URI Too Long请求 URI 超过了 Nginx 可处理的最大长度。
open() failed (2: No such file or directory)Nginx 找不到所请求的文件。