亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

關(guān)閉selinux(防火墻)方法分享

 更新時間:2014年03月05日 10:51:58   作者:  
默認(rèn)裝完CentOS,Selinux是打開的,這個你基本都是需要關(guān)閉,查看當(dāng)前selinux的狀態(tài)后,就可以按以下方法關(guān)閉selnux了

剛好手工裝完一臺CentOS6.4,就順便記錄一下。

復(fù)制代碼 代碼如下:

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

你可以運行下面命令,馬上禁用selinux

復(fù)制代碼 代碼如下:

setenforce 0*/

這個時候你查看selinux的狀態(tài)

復(fù)制代碼 代碼如下:

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

對比一下,你就可以看出變化。

重啟后,設(shè)置就失效。

如果你希望重啟生效,那么你就需要修改配置文件

/etc/selinux/config

復(fù)制代碼 代碼如下:

#SELINUX=enforcing
SELINUX=disabled

或者你可以運行下面命令

復(fù)制代碼 代碼如下:

sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config

這個時候,你重啟機器,再查看selinux的狀態(tài)

復(fù)制代碼 代碼如下:

# sestatus
SELinux status: disabled

相關(guān)文章

最新評論