(转)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

原文地址:https://www.cnblogs.com/hixiaowei/p/9039467.html