Make /etc/rc.local works in CentOS 7
Due to systemd introduced in CentOS 7, the /etc/rc.local not enabled by default, you should make /etc/rc.local executable by your hand.
運行
chmod a+x /etc/rc.local
然後重新啟動測試下 問題就解決了
這個問題是默認rc.local沒可執行權限引起的
and restart your CentOS 7 , see if it works