Linux rc.local startup script solution is not executed

If the Linux startup script /etc/rc.local file is not being executed, probably because rc.loca file does not have executable permissions, follow these steps to resolve this problem.

1, / etc / rc.local is /etc/rc.d/rc.local soft link

Perform ls -l /etc/rc.localand see.
Here Insert Picture Description

2, look at the permissions /etc/rc.d/rc.local

Perform ls -l /etc/rc.d/rc.localand see.

Here Insert Picture Description

3, modify /etc/rc.d/rc.local executable permissions

chmod +x /etc/rc.d/rc.local

4, restart solve

reboot

or

init 6

5. Copyright

C Language Technology Network original article, reproduced please indicate the source link to the article, the author and original.

Source: C Language Technology Network ( www.freecplus.net )

Author: Ethics Code farming

Guess you like

Origin www.cnblogs.com/wucongzhou/p/12588728.html