1. 在需要设置为开机启动的脚本中加入必须的chkconfig启动脚本规范,如下:
#!/bin/bash # chkconfig: 2345 80 12 # description: auto start shell script
2. 使用chkconfig将脚本加入自动启动列表
# mv your.sh /etc/rc.d/init.d
# chkconfig /etc/rc.d/init.d/your.sh
1. 在需要设置为开机启动的脚本中加入必须的chkconfig启动脚本规范,如下:
#!/bin/bash # chkconfig: 2345 80 12 # description: auto start shell script
2. 使用chkconfig将脚本加入自动启动列表
# mv your.sh /etc/rc.d/init.d
# chkconfig /etc/rc.d/init.d/your.sh
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。