Nginx 日志报错 worker_connections are not enough while connecting to upstream

文章
Nginx 日志报错 worker_connections are not enough while connecting to upstream-下一朵云

Nginx 日志报错 worker_connections are not enough while connecting to upstream

Nginx worker_connections配置太低导致500错误

Nginx反向代理一个新项目,访问人数多了就会出现500报错,重启nginx后又恢复正常可以重新打开,经过排查是 worker_connections 配置数目太低,默认为1024不够用

打开nginx.conf文件,找到 worker_connections 将其修改到9216,如下图,重载nginx后恢复正常,再也没有出现过报错

#重载nginx配置
nginx -s reload
Nginx 日志报错 worker_connections are not enough while connecting to upstream-下一朵云