将需要开机自启动的脚本命令写在文件/etc/rc.d/rc.local中即可。
比如需要开机自启动MySql和Apache,则在/etc/rc.d/rc.local文件尾部加入两行命令:
systemctl start mysqld
systemctl start httpd
将需要开机自启动的脚本命令写在文件/etc/rc.d/rc.local中即可。
比如需要开机自启动MySql和Apache,则在/etc/rc.d/rc.local文件尾部加入两行命令:
systemctl start mysqld
systemctl start httpd