1、切换到/etc/rc.d/init.d目录下
2、新建脚本,step.sh
3、添加开机启动 chkconfig –add step.sh
4、chkconfig step.sh
转载于:https://www.cnblogs.com/xshang/p/11090378.html