Centos7 rc.local 加入條目開機不生效的問題解決

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注