編輯/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 把 SELINUX=enforcing 注釋掉:#SELINUX=enforcing ,然后新加一行為:SELINUX=disabled保存,關閉。
如果你碰到其他類似提示:cannot restore segment prot after reloc: Permission denied哪應該是SELinux的問題,可以考慮把它關閉。-------------------------------------------------------------------------------------如果把SELinux關閉后還是不行.那么在你保證SElinux 被disable后.還執行下chcon -t texrel_shlib_t 如: chcon -t texrel_shlib_t /路徑/路徑/名字.so (這個文件視具體執行文件.)
新聞熱點
疑難解答