【Linux报错】修改SELINUXTYPE参数启动不了系统

背景:

修改了一下selinux参数后,重启系统一直启动不成功后回想貌似有个参数修改错了,应该是修改SELINUX这个参数的,可修改到了SELINUXTYPE,罪过

修改前的情况如下:

[root@node10 ~]# cat /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

修改后:

[root@node10 ~]# cat /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=disabted 

问题就出现在这个,这个时候就需要强制启动系统修改参数即可。

 

解决:

1、重启Linux按e进入系统启动项修改参数

 2、在linux16的行位添加 selinux=0

按ctrl + x之后启动linux系统

3、启动之后修改/etc/selinux/config文件

 

 

 


版权声明:本文为debimeng原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。