service XXX does not support chkconfig
来源:互联网 发布:免费网络云盘哪个好用 编辑:程序博客网 时间:2024/05/18 01:05
service XXX does not support chkconfig
有时候为了方便管理,常常喜欢在Linux中将之安装为服务,然后就可以使用服务来管理。
#chkconfig --add resind
常常会出现
service resind does not support chkconfig
我们一般在脚本开头加入下面两句就好了(脚本名叫resind)
#vi /etc/init.d/resind
添加下面两句到 #!/bin/bash 之后。
# chkconfig: 2345 10 90
# description: resind
其中2345是默认启动级别,级别有0-6共7个级别。
等级0表示:表示关机
等级1表示:单用户模式
等级2表示:无网络连接的多用户命令行模式
等级3表示:有网络连接的多用户命令行模式
等级4表示:不可用
等级5表示:带图形界面的多用户模式
等级6表示:重新启动
10是启动优先级,90是停止优先级,优先级范围是0-100,数字越大,优先级越低。
[root@picdata-1-1 init.d]# vi resind
#!/bin/bash
#chkconfig:2345 10 90
#description:resind
. /etc/init.d/functions
export JAVA_HOME=/application/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export RESIN_HOME=/application/resin
StartPath='/application/resin/bin/httpd.sh'
ResinLog=/app/log/resinlog
[ ! -d $ResinLog ] && mkdir -p $ResinLog
resind()
{
for id in oldboy
do
$StartPath -server $id $1 >> $ResinLog/resin_startup.log
if [ $? -eq 0 ]
then
action "$1 $id resin..." /bin/true
else
action "$1 $id resin..." /bin/false
fi
done
"resind" 48L, 857C written
[root@ohost init.d]# chkconfig --add resind
[root@ohost init.d]# chkconfig --level 3 resind on
[root@ohost init.d]# chkconfig --list|grep resind
resind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@ohost init.d]#
有时候为了方便管理,常常喜欢在Linux中将之安装为服务,然后就可以使用服务来管理。
#chkconfig --add resind
常常会出现
service resind does not support chkconfig
我们一般在脚本开头加入下面两句就好了(脚本名叫resind)
#vi /etc/init.d/resind
添加下面两句到 #!/bin/bash 之后。
# chkconfig: 2345 10 90
# description: resind
其中2345是默认启动级别,级别有0-6共7个级别。
等级0表示:表示关机
等级1表示:单用户模式
等级2表示:无网络连接的多用户命令行模式
等级3表示:有网络连接的多用户命令行模式
等级4表示:不可用
等级5表示:带图形界面的多用户模式
等级6表示:重新启动
10是启动优先级,90是停止优先级,优先级范围是0-100,数字越大,优先级越低。
[root@picdata-1-1 init.d]# vi resind
#!/bin/bash
#chkconfig:2345 10 90
#description:resind
. /etc/init.d/functions
export JAVA_HOME=/application/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export RESIN_HOME=/application/resin
StartPath='/application/resin/bin/httpd.sh'
ResinLog=/app/log/resinlog
[ ! -d $ResinLog ] && mkdir -p $ResinLog
resind()
{
for id in oldboy
do
$StartPath -server $id $1 >> $ResinLog/resin_startup.log
if [ $? -eq 0 ]
then
action "$1 $id resin..." /bin/true
else
action "$1 $id resin..." /bin/false
fi
done
"resind" 48L, 857C written
[root@ohost init.d]# chkconfig --add resind
[root@ohost init.d]# chkconfig --level 3 resind on
[root@ohost init.d]# chkconfig --list|grep resind
resind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@ohost init.d]#
0 0
- 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的解决办法
- Quick-Cocos2d-x初学者游戏教程(二)
- Codeforces Round #286 (Div. 2) B. Mr. Kitayuta's Colorful Graph dfs
- spring aop 引用传值时,引用参数不会被改变
- Quick-Cocos2d-x初学者游戏教程(三)
- mysql中SELECT INTO 和 INSERT INTO SELECT 两种表复制语句
- service XXX does not support chkconfig
- Quick-Cocos2d-x初学者游戏教程(四)
- cocos2d-x移植安卓时解决引用sqlite3库问题
- 【asp】 SQLServer OLEDB 连接数据库 代码
- Java格式化详解
- (6) SQL 语句 - 字段类型
- String类和StringBuffer类的区别
- Spring AOP示例(注解方式)
- Java File类学习笔记2:File类对象及常用操作方法