service XXX does not support chkconfig
2012-07-12 11:31
288 查看
有时候为了方便管理,我们常常喜欢在Linux中将之安装为服务,然后就可以使用服务来管理。
但是当我们运行安装服务的命令时候,假设服务名为myservice
常常会出现
我们一般在脚本开头加入下面两句就好了
#gedit /etc/init.d/myservice
添加下面两句到 #!/bin/bash 之后。
其中2345是默认启动级别,级别有0-6共7个级别。
等级0表示:表示关机
等级1表示:单用户模式
等级2表示:无网络连接的多用户命令行模式
等级3表示:有网络连接的多用户命令行模式
等级4表示:不可用
等级5表示:带图形界面的多用户模式
等级6表示:重新启动
10是启动优先级,90是停止优先级,优先级范围是0-100,数字越大,优先级越低。
但是当我们运行安装服务的命令时候,假设服务名为myservice
#chkconfig --add myservice
常常会出现
service myservice does not support chkconfig
我们一般在脚本开头加入下面两句就好了
#gedit /etc/init.d/myservice
添加下面两句到 #!/bin/bash 之后。
# chkconfig: 2345 10 90 # description: myservice ....
其中2345是默认启动级别,级别有0-6共7个级别。
等级0表示:表示关机
等级1表示:单用户模式
等级2表示:无网络连接的多用户命令行模式
等级3表示:有网络连接的多用户命令行模式
等级4表示:不可用
等级5表示:带图形界面的多用户模式
等级6表示:重新启动
10是启动优先级,90是停止优先级,优先级范围是0-100,数字越大,优先级越低。
相关文章推荐
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- service xxx does not support chkconfig
- service xxx does not support chkconfig
- service XXX does not support chkconfig
- service httpd does not support chkconfig linux
- service redis does not support chkconfig的解决办法
- service tomcat does not support chkconfig 的解决办法:
- service php-fpm does not support chkconfig
- service redis does not support chkconfig的解决办法
- Service redis does not support chkconfig的解决办法
- chkconfig无法启动服务service httpd does not support chkconfig
- Shell脚本安装成服务加入系统启动-service XX does not support chkconfig
- chkconfig添加服务错误service memcached does not support chkconfig
- service启动redis :service redisd does not support chkconfig
- service httpd does not support chkconfig
- service demo_test does not support chkconfig
- service redis does not support chkconfig的解决办法