原文:查看SELinux狀態&關閉SELinux

. 查看SELinux狀態 . getenforce getenforce命令是單詞get 獲取 和enforce 執行 連寫,可查看selinux狀態,與setenforce命令相反。 setenforce命令則是單詞set 設置 和enforce 執行 連寫,用於設置selinux防火牆狀態,如:setenforce 用於關閉selinux防火牆,但重啟后失效 . usr sbin sest ...

2020-01-08 15:10 0 768 推薦指數:

查看詳情

查看SELinux狀態&關閉SELinux

1. 查看SELinux狀態 1.1 getenforce getenforce 命令是單詞get(獲取)和enforce(執行)連寫,可查看selinux狀態,與setenforce命令相反。 setenforce 命令則是單詞set(設置)和enforce(執行)連寫,用於設置 ...

Tue Aug 02 21:32:00 CST 2016 0 5638
查看SELinux狀態關閉SELinux

一、查看SELinux狀態: 1、我們可以通過查看配置文件的命令 cat /etc/selinux/config 來查看狀態 發現SELinux共有3個狀態enforcing (執行中)、permissive (不執行但產生警告)、disabled(關閉)。 2,也可以用這個命令檢查 ...

Fri Aug 06 06:00:00 CST 2021 0 236
linux下查看 SELinux狀態關閉SELinux

SELinux全稱為安全增強式 Security-Enhanced Linux(SELinux),是一個在內核中實踐的強制存取控制(MAC)安全性機制。SELinux 首先在 CentOS 4 出現,並在其后的 CentOS 發行版本獲得重大改善。這些改善代表用 SELinux 解決問題的方法亦 ...

Thu Feb 18 23:21:00 CST 2021 0 636
centos 7.0 查看selinux狀態|關閉|開啟

Linux在安裝好之后通常SELinux都是出於默認開啟的狀態,開啟的情況下會導致一些服務的安裝不成功。 在不需要的情況下完全可以關閉掉,下面是在centos 7.0里面如何查看關閉selinux查看selinux狀態 1 2 ...

Fri Aug 17 19:11:00 CST 2018 0 3310
如何查看關閉和開啟selinux

以下介紹一下SELinux相關的工具/usr/bin/setenforce 修改SELinux的實時運行模式setenforce 1 設置SELinux 成為enforcing模式setenforce 0 設置SELinux 成為permissive模式如果要徹底禁用SELinux 需要在/etc ...

Wed Mar 23 06:33:00 CST 2016 0 3178
查看SELinux狀態

查看SELinux狀態:1./usr/sbin/sestatus -v ##如果SELinux status參數為enabled即為開啟狀態 2.getenforce ##也可以用這個命令檢查 關閉SELinux:1、臨時關閉(不用重啟機器):setenforce 0 ##設置 ...

Wed Oct 25 21:48:00 CST 2017 0 19084
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM