nginx启动报错(13: Permission denied)


nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)

sestatus #发现selinux是开启的状态

#临时将selinux关闭
setenforce 0  
      
#永久关闭
cat > /etc/sysconfig/selinux <<EOF
SELINUX=disabled
SELINUXTYPE=targeted
EOF
sestatus
reboot # 注意永久关闭需要重启


posted @ 2021-08-02 11:43  1769987233  阅读(150)  评论(0编辑  收藏  举报