今天进公司第一天,同事让我装环境,需要在liunx上操作,所以我就开始做相关的环境准备。于是我把selinuxtype修改为disabled。其实应该修改selinux=diabled。所以是我修改反了。

[root@RabbitRedis ~]# 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
#SELINUX=disabled
# 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=disabled 

结果,重启的时候,发现系统一直卡在启动的界面上,于是开始百度,发现了各种解决方案。找到一个最佳的。

 

解决方案:

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

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

3.按ctrl + x之后启动linux系统

4.启动之后修改/etc/selinux/config文件

#SELINUX=enforcing
SELINUX=disabled
# 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

附:所以工作上一定要仔细,出了问题也要有及时处理的能力,不懂就首先百度。

 

 

最后修改于 2020-09-08 12:45:30
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇