(转)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
用一个例子来演示会更加清晰