1. 程式人生 > >解決/etc/rc.local啟動不執行

解決/etc/rc.local啟動不執行

執行以下命令

#systemctl list-dependencies multi-user.target | grep rc-local

如果沒有輸出執行下方命令

#chmod +x /etc/rc.d/rc.local
#systemctl daemon-reload

再次執行命令

#systemctl list-dependencies multi-user.target | grep rc-local

輸出結果

● ├─rc-local.service

參考:

https://blog.csdn.net/baiihcy/article/details/54577770#commentBox