原文:解决nginx报错:nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)

报错描述: nginx: emerg bind to . . . : failed : Permission denied 通过ansible远程给主机更换端口并重新启动nginx服务,出现以上报错信息 权限被拒绝 。 解决方式:经检查发现是selinux导致报错。 root localhost nginx getenforce 查询selinux状态 root localhost nginx s ...

2019-08-15 16:49 1 2727 推荐指数:

查看详情

nginx bind() to 0.0.0.0:**** failed (13: Permission denied)

nginx 启动失败,日志里面报错信息如下: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:**** failed (13: Permission denied) 原因seLinux限制了http的端口 getenforce 这个命令 ...

Thu Oct 25 18:06:00 CST 2018 0 2330
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM