安卓selinux怎么關(guān)閉 如何關(guān)閉Linux里邊的selinux?
如何關(guān)閉Linux里邊的selinux?1、檢查SELinux status命令:1、/usr/SBIN/sestatus-V#;如果SELinux status參數(shù)已啟用,則它處于打開狀態(tài)。SELi
如何關(guān)閉Linux里邊的selinux?
1、檢查SELinux status命令:1、/usr/SBIN/sestatus-V#;如果SELinux status參數(shù)已啟用,則它處于打開狀態(tài)。SELinux狀態(tài):enabled 2,getenforce#;您也可以使用此命令檢查。2關(guān)閉SELinux方法:1。臨時關(guān)閉(不重新啟動機器):setenforce 0#set SELinux to permission mode#setenforce 1 set SELinux Change the configuration file to restart the machine:修改/etc/SELinux/config file to Change SELinux=enabling to SELinux=disabled and restart the machine
如何關(guān)閉Linux自動的SELinux服務(wù)?
未邀請。你的地圖已經(jīng)關(guān)閉了,是不是。。。
我會告訴你如何關(guān)閉它。
1. 暫時關(guān)閉SELinux。
setEnforce0
現(xiàn)在關(guān)閉SELinux。
2。永久關(guān)閉SELinux。
就像你的照片一樣。轉(zhuǎn)到/etc/SELinux/config并將其更改為圖片中的那個。
或者您可以執(zhí)行以下命令
sed-I “7 S/enforcing/disabled/”/etc/SELinux/config
首先,我們可以使用該命令查看SELinux的狀態(tài)。Getenforce可以查看SELinux的狀態(tài)。目前,我們可以看到SELinux已經(jīng)關(guān)閉。還有一個命令可以查看SELinux的狀態(tài)。Sestatus-V還有一個setenforce命令來設(shè)置SELinux的狀態(tài)。詳見手冊8。假設(shè)SELinux正在運行,我們可以使用setenforce命令設(shè)置臨時關(guān)閉而不重新啟動。setEnforce0我們還可以編輯文件并重新啟動它,使其關(guān)閉并生效。VI/etc/sysconfig/SELinux將行更改為SELinux=disabled seteforce 0,可以臨時關(guān)閉,但重新啟動后仍將更改為原始狀態(tài)。修改/etc/sysconfig/SELinux文件以永久禁用它。