虛擬機啟動時報’A start job is running for /etc/rc.local .. Compatibility錯誤。


虛擬機啟動時報’A start job is running for /etc/rc.local .. Compatibility錯誤。

問題已經存在很長時間了,但是不影響ssh登錄,遂置之未理。

 

經查 原因在於  原文: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,問題解決!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM