Jump to content
PHP論壇人

4.安全模組預設AppArmor,而非SELinux (附關閉selinux教學)


Recommended Posts

-------------------------------------------------------------------------
關閉AppArmor
-------------------------------------------------------------------------

查看apparmor是否開啟與保護情況
sudo apparmor_status


列出apparmor所有可用配置檔案
ls /etc/apparmor.d/


完全停用apparmor
sudo systemctl disable apparmor


重新開機
sudo reboot

 

 

-------------------------------------------------------------------------
遇到有安裝selinux時,如何關閉selinux
-------------------------------------------------------------------------

觀看selinux的狀態
sudo sestatus

如果啟用,會顯示 SELinux status: enabled


vi  /etc/selinux/config

查找 SELINUX=permissive 或者 SELINUX=enforcing

改為
SELINUX=disabled


儲存並離開
:wq


重開機
sudo reboot

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...