虚拟机启动时报’A start job is running for /etc/rc.local .. Compatibility错误。

虚拟机启动时报’A start job is running for /etc/rc.local .. Compatibility错误。

问题已经存在很长时间了,但是不影响ssh登录,遂置之未理。

虚拟机启动时报’A start job is running for /etc/rc.local .. Compatibility错误。

 

经查 原因在于  原文:If you put long-running commands in rc.local, your startup will be delayed.

意思是说如果你在rc.local 里执行了长时间运行的命令而不退出的话 会拖着你系统不让启动,所以应该在命令后加&使其在后台运行。

解决方法如下:

重启虚拟机,在引导界面按“e” 编辑第一个启动项,在“quiet”后加 systemd.unit=rescue.target (切换到单用户模式启动),按ctrl+x 启动 输入root密码 编辑一下rc.local,问题解决!

上一篇:字符处理--awk一些使用场景


下一篇:相同Ip 不同端口配置Nginx反向代理Apache