nginx转发500报错排查记录
问题:nginx 部署应用后,访问端口 总是报500 使用root创建的文件夹,nginx访问总是500,配置、端口也都没有问题 查看日志 发现是 权限问题 13: Permission denied
查看nginx.conf:
user nobody
改成:user root
注意:只是注释掉(#user nobody),没重新赋值默认还是nobody
停止nginx -s stop
重启nginx -c nginx.conf
问题:nginx 部署应用后,访问端口 总是报500 使用root创建的文件夹,nginx访问总是500,配置、端口也都没有问题 查看日志 发现是 权限问题 13: Permission denied
查看nginx.conf:
user nobody
改成:user root
注意:只是注释掉(#user nobody),没重新赋值默认还是nobody
停止nginx -s stop
重启nginx -c nginx.conf
本文链接:https://587v5.com/post/nginx-de-quan-xian-wen-ti-(13: Permission denied)-jie-jue-ban-fa.html
                作者
                
                
                    xiaoyierle
                
                发表于
                2020-12-17 23:07:44
                
                ,添加在分类
                
                
                    技术
                
                
                下
                
                
                ,并被添加「
                
                
                    Linux
                
                
                 」标签
                
                ,最后修改于
                2020-12-17 23:11:53
            
Comments