centos7 开机自启

https://www.cnblogs.com/longchengruoxi/p/11451062.html

 

chkconfig启动脚本规范 在脚本开头加入下面内容

注意:不添加内容的话添加启动项时会提示service myservice does not support chkconfig

#!/bin/sh
#chkconfig:2345 80 90
#decription:autostart

 

 

posted @ 2020-04-14 13:10  jinwenb  阅读(120)  评论(0编辑  收藏  举报