一、chkconfig方法添加shell脚本 1.查看当前的开机自启列表 chkconfig --list 2.进入下列文件夹 cd /etc/rc.d/init.d 2.新建文件 #touch test.sh #vim test.sh #或者直接 vim test.sh 3.编辑文件如下 #!/bin/bash #chkconfig:2345 80 90 #decription:autostart # 固定格式,若缺失在添加进chkconfig的时候可能出现“服务xx.sh不支持 chkconfig” ## 脚本…