Centos7 – sets the RC.local file

To the/etc/rc.d/rc.local executable permissions:

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

Open RC-local.Service service:

systemctl enable rc-local.service

systemctl start rc-local.service