当前位置首页 > Nginx知识

nginx启动失败:failed(13:Permissiondenied)

阅读次数:176 次  来源:admin  发布时间:

nginx启动失败:failed(13:Permissiondenied)

查selinux

永远关闭:

# cat /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing     改为disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

临时关闭:

#setenforce 0

重启nginx

nginx启动失败:failed(13:Permissiondenied)

上一篇:nginx概念原理及优化-高超博客
下一篇:VMWare虚拟机Centos6.9中的linux配置静态ip地址上外网