某些服务想用命令chkconfig加载自启动.提示"**服务不支持chkconfig".解决方法是在该服务的启动脚本里开头一般要这样写
#!/bin/bash
#chkconfig:345 61 61 //此行的345参数表示,在哪些运行级别启动,启动序号(S61);关闭序号(K61)
#description:Apache //此行必写,描述服务.
chkconfig --add fuwu
chkconfig --level 345 fuwu on
转载于:https://blog.51cto.com/laowa/1897029