1.查看报错日志:/var/log/nginx/error.log
报错信息:
2018/05/29 16:24:35 [crit] 63586#63586: *5 connect() to 127.0.0.1:8083 failed (13: Permission denied) while connecting to upstream, client: 124.41.214.106, server: api.ahmrzn.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8083/", host: "218.106.89.40:80"
2.百度13: Permission denied ,关闭SeLinux
3.解决方法:https://blog.youkuaiyun.com/dszgf5717/article/details/50903817
Nginx连接失败故障排除
本文记录了一次Nginx服务出现连接错误的具体情况,包括错误日志详情及通过排查发现的问题根源在于SeLinux导致的权限问题,并提供了解决方案的链接。
1731

被折叠的 条评论
为什么被折叠?



