Centos7中查看selinux状态的方法:1、打开centos7终端;2、在centos7终端命令行中输入“sestatus”命令查看selinux状态即可。具体操作步骤:在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开
Centos7中查看selinux状态的方法:1、打开centos7终端;2、在centos7终端命令行中输入“sestatus”命令查看selinux状态即可。
具体操作步骤:
在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。
在centos7终端命令行中输入以下命令查看selinux状态即可。
sestatus #查看selinux状态
返回结果示例:
[root@localhost ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
以上结果中SELinux status参数为enabled即为开启状态,disabled则是关闭状态。
--结束END--
本文标题: centos7如何查看selinux状态
本文链接: https://www.lsjlt.com/news/110708.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0