解决/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

猜你喜欢

转载自blog.csdn.net/Aerry_ale/article/details/82121474
今日推荐