nginx http error 502
时间: 2023-08-23 08:13:43 浏览: 115
回答: Nginx HTTP错误502 Bad Gateway是指Nginx无法将请求的PHP文件转交给PHP-FPM处理,导致PHP-CGI进程终止或没有找到可执行的PHP-CGI进程。\[1\]\[3\]造成这个错误的原因可能有多种,其中一种可能是FastCGI配置有问题。在这种情况下,Nginx无法将PHP文件转交给PHP-FPM处理,导致CPU降低、负载升高和网卡流量降低。\[2\]要解决这个问题,可以检查FastCGI配置是否正确,并确保PHP-CGI进程能够正常执行。
#### 引用[.reference_title]
- *1* *3* [nginx 502 Bad Gateway 错误问题收集](https://blog.csdn.net/mdj280759843/article/details/83909723)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Nginx 502错误总结](https://blog.csdn.net/weixin_30522183/article/details/95278365)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文