zoukankan      html  css  js  c++  java
  • linux7系统进入单用户模式

    1、重启系统,在出现选择内核界面的时候按“e”键

     2、移动光标到红色找到LANG=zh_CN.UTF-8 增加“init=/sysroot/bin/sh” 修改后如下图

     

    3、使用"ctrl+x"来重启服务器系统,重启后会进入到单用户模式

     1 增加如下配置修改root密码
     2 
     3 #mount -o remount,rw /sysroot -->>重新挂载/sysroot目录,使具有r,w权限
     4 
     5 #chroot /sysroot -->>换根
     6 
     7 #passwd  root
     8 #输入新的密码
     9 #touch /.autorelabel -->>selinux没有关闭,必须添加这一行
    10 
    11 #exit -->>退出
    12 
    13 #rebbot -->>重启,修改成功

    截图如下

     

  • 相关阅读:
    列表
    break和continue
    第三天下午
    第二天
    简历,面试
    周三 景安
    应届生求职优势(我的求职心…

    2013年01月02日
    Click and Drag
  • 原文地址:https://www.cnblogs.com/linux-org/p/11842113.html
Copyright © 2011-2022 走看看