Skip to content Skip to main navigation Skip to footer

Ubuntu系统下”Failed to start /etc/rc.local Compatibility”错误的解决方法

本文主要讲述在ubuntu 16.04/14.04 系统下在启动时出现或者查看rc-local状态时出现“failed to start /etc/rc.local compatibility”错误时的解决方法。
1# 查看/etc/rc.local 配置文件里的启动项,将有可能会导致错误的启动项注释掉。
2# 重启rc-local 服务

$ sudo systemctl restart rc-local.service

3# 再次查看rc-local 服务的状态信息

$ sudo systemctl status rc-local.service
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
Drop-In: /lib/systemd/system/rc-local.service.d
└─debian.conf
Active: active (exited) since 一 2017-08-28 11:30:06 CST; 2h 56min ago
Process: 1219 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 0B
CPU: 0
8月 28 11:30:05 ubuntutest systemd[1]: Starting /etc/rc.local Compatibility...
8月 28 11:30:06 ubuntutest systemd[1]: Started /etc/rc.local Compatibility.