selinux怎么關(guān)閉

本篇內(nèi)容介紹了“selinux怎么關(guān)閉”的有關(guān)知識(shí),在實(shí)際案例的操作過程中,不少人都會(huì)遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

成都創(chuàng)新互聯(lián)公司專注于色尼企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站設(shè)計(jì),商城網(wǎng)站定制開發(fā)。色尼網(wǎng)站建設(shè)公司,為色尼等地區(qū)提供建站服務(wù)。全流程按需網(wǎng)站策劃,專業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,成都創(chuàng)新互聯(lián)公司專業(yè)和態(tài)度為您提供的服務(wù)

# sestatus
selinux status:                 enabled
selinuxfs mount:                /selinux
current mode:                   enforcing
mode from config file:          enforcing
policy version:                 24
policy from config file:        targeted

你可以運(yùn)行下面命令,馬上禁用selinux

setenforce 0*/

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

# sestatus
selinux status:                 enabled
selinuxfs mount:                /selinux
current mode:                   permissive
mode from config file:          enforcing
policy version:                 24
policy from config file:        targeted

對(duì)比一下,你就可以看出變化。重啟后,設(shè)置就失效。

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

/etc/selinux/config

#selinux=enforcing
selinux=disabled

或者你可以運(yùn)行下面命令

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

這個(gè)時(shí)候,你重啟機(jī)器,再查看selinux的狀態(tài)

# sestatus
selinux status: disabled

“selinux怎么關(guān)閉”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!

分享題目:selinux怎么關(guān)閉
本文路徑:http://muchs.cn/article2/gpghic.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、網(wǎng)站策劃、定制開發(fā)、網(wǎng)站建設(shè)、網(wǎng)站營銷、

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司