(转)CentOS 7 —— /etc/rc.local 开机不执行 - 解决方法

chmod +x /etc/rc.d/rc.local
systemctl enable rc-local.service

 

Note: rc.local is obsolete.

 

-------------------------- OR

 

append commands to /etc/bashrc

 

https://blog.csdn.net/ztguang/article/details/51727857

posted @ 2018-05-15 10:07  littlevigra  阅读(146)  评论(0编辑  收藏  举报