
PHP-FPM and Nginx: 502 Bad Gateway
当你出现上面错误时尝试作如下修改:
1
2
3
4
5
6
user www-data;
worker_processes 1;
user nginx;
worker_processes 1;
💘 相关文章
- 网站打不开 出现502 Bad Gateway
- QQ 登录 502 Bad Gateway
- SAE 又出502、504 问题了
- 用apt-get 升级 nginx (debian6/Ubuntu)
- Debian/Ubuntu+nginx + spawn-fcgi + WordPress
- Openshift+python+tornado+nginx+mysql+octopress
- 有没有Nginx的规则啊 ?
- nginx平台
- SAE python 出现 504 Gateway Time-out
- nginx 1.17.4 下编译安装openssl+nginx-upload-module-2.3.0报错
共3条关于"PHP-FPM and Nginx: 502 Bad Gateway"的评论
你是说502跟进程数有关系?
@root 重点应该是user,
确保php5-cgi 和 nginx 的用户相同,这是引起nginx 502 的一个原因
嗯 我上次也遇到过,更改用户组属性之后就502,你不说我还忘记了…………nice