Linux伺服器---selinux
關閉selinux
1、通過命令“getenforce”獲取selinux狀態,
|
2、在終端輸入命令即可關閉selinux,此種做法只是暫時關閉,重啟之後沒有效果
|
3、通過配置檔案“/etc/sysconfig/selinux”來修改selinux狀態,此種做法需要重啟機器
|
4、通過修改“/boot/grub/menu.lst”來關閉selinux,這樣每次開機都不會啟動selinux
|
關閉selinux
1、通過命令“getenforce”獲取selinux狀態,
|
2、在終端輸入命令即可關閉selinux,此種做法只是暫時關閉,重啟之後沒有效果
|
3、通過配置檔案“/etc/sysconfig/selinux”來修改selinux狀態,此種做法需要重啟機器
|
4、通過修改“/boot/grub/menu.lst”來關閉selinux,這樣每次開機都不會啟動selinux
|