rc.local start content does not take effect

System Version CentOS Linux release 7.2.1511

Problem: Content /etc/rc.local does not take effect starting the machine

 

After checking  

/etc/rc.local is soft connection /etc/rc.d/rc.local

Permissions /etc/rc.d/rc.local follows

# ll /etc/rc.d/rc.local
-rw-r-xr-x

 

Solution: permission to increase x

# chmod 755 /etc/rc.d/rc.local

# ll /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 490 Jul 30 15:54 /etc/rc.d/rc.local

Guess you like

Origin www.cnblogs.com/centos2017/p/11270703.html