问题:本想将teamviewer这个软件随linux自启动,所以将其启动命令放在rc.local中,但是重启后发现linux启动不起来了,系统前面都是正常启动的,就是无法进入帐户登陆界面,无法输入root帐号密码,不能登陆到系统.
<wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">按了ctrl+c,ctrl+z,quit,exit都无效.</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="word-wrap:normal; word-break:normal; line-height:21px; color:rgb(50,62,50); font-family:simsun; font-size:14px"><strong>解决办法</strong></span><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">:通过单用户模式进入linux,修改系统配置。</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">在使用GRUB引导程序的时候如何进入单用户模式?</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">解决方法:</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">使用GRUB时,可以添加一个S(大写S)到内核命令行,可以进入单用户模式。 要做到这样,需要重新起动系统,当GRUB的屏幕出现时:</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">1、开机时按字母e进入引导界面。</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122255048" alt=""></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">2、使用方向键选择你希望引导的内核。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">3、选择以单词kernel起头的这行。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122304408" alt=""><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">4.按下e键以编辑这个命令行。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">5.在行末添加一个字母S</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">(或者添加单词single)</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122313643" alt=""><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">6.回车接受改动。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
7.按b键接受修改并且启动内核。
8.这样就会进入单用户模式,可以在bash下执行命令。然后就可以在bash下修改系统的配置了。
分享到:
相关推荐
中标麒麟开机自启配置文件,在文件写入命令。具体请看本人博客 拷贝rc.local文件 ...sed -i "/etc/rc.local" /etc/rc.d/rc.local echo /etc/rc.local >> /etc/rc.d/rc.local chmod 777 /etc/rc.local
2、rc.local文件的原始内容# 3、rc.local文件的配置rc.local本质上是一个shell脚本文件,可以把启动时需要执行的命令写在里面,启动时将
主要介绍了Linux中没有rc.local文件的解决方法,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
linux下编辑rc.local设置开机启动收集.pdf
Linux自启动设置详解 [ 作者: 加入时间:2007-07-19 11:41:06 来自:Linux联盟收集整理 ] 前言 linux有自己一套完整的启动体系,抓住了linux启动的脉络,linux的启动过程将不再神秘。 阅读之前建议先看...
我们在ubuntu下要把一个程序加入开机启动,一般可以通过修改rc.local来完成,但ubuntu下有两个rc.local文件。分别是/etc/rc.local和/etc/init.d/rc.local。可以看一下两个文件的内容找到他俩的关系: /etc/init.d/...
Read the fucking manual and source code.博客园 :: :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅::
rc.local
下面小编就为大家带来一篇解决centos7 开机/etc/rc.local 不执行的问题。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
Prometheus最新官方开源版本 node_exporter-1.0.0-rc.0.linux-amd64.tar.gz
Linux运维-操作系统 教程 从入门到精通101课-92-94脚本编程进阶-rc.local开机自启动.mp4
介绍linux /etc/rc.d目录下的配置文件的功能详解,系统启动的服务配置等
rc-local.service
rc.local文件下载
linux有自己一套完整的启动体系,抓住了linux启动的脉络,linux的启动过程将不再神秘。
VS编译的时候,如果发生error link1158 无法运行rc.exe错误,直接把rc.exe 和rcdall.dll拷贝的bin目录即可。
prometheus-2.17.0-rc.4.linux-amd64.tar.gz 压缩包下载,linux版本 该资源为prometheus-2.17* linux安装包,用于系统监控和报警。 prometheus是一个开源的监控和报警系统。从2012年初,很多 公司和组织开始使用...
最新版 prometheus 2.16.0 linux 压缩包,Prometheus是一套开源的监控&报警&时间序列数据库的组合,起始是由SoundCloud公司开发的。随着发展,越来越多公司和组织接受采用Prometheus,社区也十分活跃,他们便将它...
linux设置tomcat自动启动在centos下,开机后会自动执行/etc/rc.local中的命令,平时启动tomcat的命令为tomcat_home/bin/startup.sh或tomcat_home/bin/catalina.sh start,当直接把他们任何一个加入到/etc/rc.local中...