selinux的状态查看及关闭

查看SELinux状态:

1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态
SELinux status:                 enabled
2、getenforce                 ##也可以用这个命令检查

关闭SELinux:

1、临时关闭(不用重启机器):

setenforce 0                  ##设置SELinux 成为permissive模式
setenforce 1             设置SELinux 成为enforcing模式

2、修改配置文件需要重启机器:

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled

重启机器即可

时间: 2024-08-01 22:46:10

selinux的状态查看及关闭的相关文章

SELinux的状态设置

SELinux的状态类型: enforcing:强制,每个受限进程都必然受到限制. permissive:允许,每个受限的进程违规操作不会被禁止,但是会被记录于审计日志. disabled:禁用 SELinux的状态查看: getenforce:获取selinux当前状态 sestatus:可以查看到详细信息 SELinux的状态设置: 永久性设置: /etc/sysconfig/selinux  (软链接文件) /etc/selinux/config      (原文件) 临时性设置: set

selinux 的查看与关闭

色Linux 嗯,就是这么翻译的 吼吼 原文:http://bguncle.blog.51cto.com/3184079/957315 查看SELinux状态: 1./usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态 SELinux status:                 enabled 2.getenforce                 ##也可以用这个命令检查 关闭SELinux: 1.临时关闭(不用重启机

查看、关闭SELinux

查看SELinux状态: 1./usr/sbin/sestatus -v | grep "SELinux status:"    ##如果SELinux status参数为enabled即为开启状态 2.getenforce     ##除了上面的命令还可以使用这个命令,输出结果是permissive为关闭,enforcing为开启. 关闭SELinux: 1.临时关闭(不重启系统即可生效): setenforce 0      ##设置SELinux为permissive模式,即关闭

AIX查看sshd状态 启动sshd 关闭sshd

aix 开启 ssh[@[email protected]] cd /etc/sshvi sshd_config Port 22-- 去掉# PasswordAuthentication yes --去掉# lssrc -s sshd 查看状态stopsrc -s sshd; 停止sshstartsrc -s sshd 启动ssh 关键字:AIX查看sshd状态 启动sshd 关闭sshd

MySql状态查看方法 MySql如何查看连接数和状态?

如果是root帐号,你能看到所有用户的当前连接.如果是其它普通帐号,只能看到自己占用的连接 怎么进入mysql命令行呢? mysql的安装目录下面有个bin目录,先用命令行进入该目录,然后用 mysql -uroot -p123456 来登录(注意:用户名和密码不用包含“”) 命令: show processlist; 如果是root帐号,你能看到所有用户的当前连接.如果是其它普通帐号,只能看到自己占用的连接. show processlist;只列出前100条,如果想全列出请使用show fu

Connection。连接的当前状态为已关闭。

<p style="font: 14px/26px 'microsoft yahei'; margin: 0px 0px 1.1em; text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; box-sizing: border-box; widows: 1

ubuntu 查看和关闭端口

查看端口: netstat -anp 查看制定端口: netstat -anp | grep 9999 tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 4806/node tcp 0 0 127.0.0.1:53928 127.0.0.1:9999 FIN_WAIT2 - tcp 1 0 127.0.0.1:9999 127.0.0.1:53928 CLOSE_WAIT 4806/node tcp 1 0 127.0.0.1:9999 127.0.0.1:53931

查看和关闭端口

查看 netstat -anp tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 12410/python 关闭 kill -9 12410 查看和关闭端口,布布扣,bubuko.com

mysql状态查看 QPS/TPS/缓存命中率查看

mysql状态查看 QPS/TPS/缓存命中率查看 运行中的mysql状态查看 对正在运行的mysql进行监控,其中一个方式就是查看mysql运行状态. (1)QPS(每秒Query量) QPS = Questions(or Queries) / seconds mysql > show  global  status like 'Question%'; (2)TPS(每秒事务量) TPS = (Com_commit + Com_rollback) / seconds mysql > show