nginx 502 Bad Gateway
时间: 2023-08-25 18:15:52 浏览: 94
回答: nginx 502 Bad Gateway错误通常是由于后端的问题引起的。可能是PHP服务的max_requests和max_children参数设置不合适,需要查看日志以确定具体原因。另外,该错误也可能是由于nginx缓冲区的bug造成的,解决方法可以尝试增加缓冲区容量大小设置或者调整client_header_buffer和fastcgi_buffer_size参数。此外,还有其他导致502错误的情况,比如服务器配置不足以支撑当前业务需求,可以通过查看服务器日志来确定具体原因。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [服务器报错nginx 502 Bad Gateway的原因以及解决办法](https://blog.csdn.net/u011055144/article/details/128596889)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [常见的Nginx 502 Bad Gateway解决办法](https://blog.csdn.net/yicixing7/article/details/109739038)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文