首页 > 代码库 > nginx:connect() to 127.0.0.1:5601 failed (13: Permission denied) while connecting to upstream错误

nginx:connect() to 127.0.0.1:5601 failed (13: Permission denied) while connecting to upstream错误

重启了下服务器,nginx反向代理访问kibana就报错:



技术分享

查了下日志发现是这个错:

connect() to 127.0.0.1:5601 failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1

和权限有关的,就是selinux呗。

[root@localhost ~]# getenforce
Enforcing

看了下果真如此!坑爹啊!我忘记关了。关掉后就没事了。

setenforce 0
sed -i ‘s/enforcing$/disabled/g‘ /etc/selinux/config


本文出自 “LINUX” 博客,请务必保留此出处http://wangpengtai.blog.51cto.com/3882831/1913469

nginx:connect() to 127.0.0.1:5601 failed (13: Permission denied) while connecting to upstream错误