service XXX does not support chkconfig
来源:互联网 发布:java远程执行cmd命令 编辑:程序博客网 时间:2024/05/17 22:13
有时候为了方便管理,我们常常喜欢在Linux中将之安装为服务,然后就可以使用服务来管理。
我们一般在脚本开头加入下面两句就好了
但是当我们运行安装服务的命令时候,假设服务名为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 ***** does not support chkconfig
- “service httpd does not support chkconfig” 問題
- service httpd does not support chkconfig
- service X does not support chkconfig
- service httpd does not support chkconfig linux
- service xxxx does not support chkconfig
- service activemq does not support chkconfig
- service httpd does not support chkconfig
- service启动redis :service redisd does not support chkconfig
- 解决“service nginx does not support chkconfig”的问题?
- service redis does not support chkconfig的解决办法
- service redis does not support chkconfig的解决办法
- service httpd does not support chkconfig的问题
- Service redis does not support chkconfig的解决办法
- 分享一款jquery日历控件(超赞)
- 为什么一般情况下ln不能硬链接目录
- Python的学习(二十五)-- os.path模块
- JSP自定义标签实现过程
- ASCII编码表
- service XXX does not support chkconfig
- 小白学Linux之module_param()函数学习
- 二级指针变量与数组
- 如何修改ArcSDE的端口号信息?
- mysql 触发器学习
- http 的header
- 找到一个好的code网站 http://www.planetsourcecode.com
- C#中有关string.GetHashCode()的一个重要注意事项!
- dataGridView 单元格添加combox checkbox