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

简介:

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



wKioL1jl9afTM38xAAEDvhwS3s8208.png-wh_50

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

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

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

1
[root@localhost ~] # getenforce
1
Enforcing

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

1
2
setenforce 0
sed  -i  's/enforcing$/disabled/g'  /etc/selinux/config









本文转自 wangpengtai  51CTO博客,原文链接:http://blog.51cto.com/wangpengtai/1913469,如需转载请自行联系原作者
目录
相关文章
|
6月前
|
负载均衡 算法 应用服务中间件
Nginx系列教程(08) - Upstream Server 负载均衡
Nginx系列教程(08) - Upstream Server 负载均衡
84 0
|
28天前
|
应用服务中间件 nginx Windows
【报错】Windows下启动nginx报:bind() to 0.0.0.0:80 failed...
【报错】Windows下启动nginx报:bind() to 0.0.0.0:80 failed...
|
8月前
|
应用服务中间件 nginx
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
203 1
|
4月前
|
存储 应用服务中间件 nginx
【各种问题处理】nginx报错nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
【1月更文挑战第13天】【各种问题处理】nginx报错nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
|
6月前
|
缓存 负载均衡 Unix
Nginx深入详解之upstream分配方式
Nginx深入详解之upstream分配方式
138 0
|
7月前
|
负载均衡 应用服务中间件 nginx
Nginx之upstream被动式重试机制解读z
Nginx之upstream被动式重试机制解读z
|
8月前
|
应用服务中间件 nginx
通过nginx访问连接websocket 错误 failed: Error during WebSocket handshake: Unexpected response code: 400
通过nginx访问连接websocket 错误 failed: Error during WebSocket handshake: Unexpected response code: 400
217 0
|
9月前
|
应用服务中间件 nginx
Nginx 实战系列之四:upstream 的 max_fails 和 fail_timeout 指标和实战经验
Nginx 实战系列之四:upstream 的 max_fails 和 fail_timeout 指标和实战经验
|
Java 应用服务中间件 PHP
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
378 0
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
|
负载均衡 测试技术 Linux
小满Linux(第十一章Nginx-负载均衡upstream)
upstream的基本语法如下,一个upstream需要设置一个名称,这个名称可以在server里面当作proxy主机使用。
126 0
小满Linux(第十一章Nginx-负载均衡upstream)