/etc/rc.d/rc.local 自定义开机启动程序

/etc/rc.d/rc.local 用于用户自定义开机启动程序,可以往里写开机要执行的命令或脚本,线上的配置如下:

[root@localhost ~]$ cat /etc/rc.d/rc.local 
/data/init/restart_game.sh
touch /var/lock/subsys/local
ulimit -SHn 65535
ulimit -u 65535
/data/init/iptables.sh
rsync --daemon --config=/etc/rsyncd.conf
/usr/local/mysql/share/mysql/mysql.server start
原文地址:https://www.cnblogs.com/mingerlcm/p/10553093.html