cent os -- cannot restore segment prot after reloc: Permission denied

在cent os 下,一切编译正常进行,先后安装了apache,mysql,php,但是当试图启动apache时,提示如下错误:

 

cannot restore segment prot after reloc: Permission denied

 

经查,可能是由于SE LINUX导致,使用如下命令可以临时关闭selinux

 

/usr/sbin/setenforce 0

要永久关闭,可通过修改/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 - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

将enforcing修改成disabled既可。

你可能感兴趣的:(cent os -- cannot restore segment prot after reloc: Permission denied)