bash: chkconfig: command not found
2012-09-10 22:27
357 查看
[root@xuniji ~]# chkconfig
bash: chkconfig: command not found
[root@xuniji ~]# rpm -aq |grep chkconfig
chkconfig-1.3.30.1-2
[root@xuniji ~]# export PATH=/sbin:$PATH
[root@xuniji ~]# chkconfig
chkconfig version 1.3.30.1 - Copyright (C) 1997-2000 Red Hat,Inc.
This may be freely redistributed under the terms of the GNU PublicLicense.
usage: chkconfig --list[name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig [--level <levels>]<name><on|off|reset|resetpriorities>
[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin
[root@xuniji ~]# PATH="$PATH":/sbin
[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin:/sbin
这样就可以使用chkconfig命令了。
bash: chkconfig: command not found
[root@xuniji ~]# rpm -aq |grep chkconfig
chkconfig-1.3.30.1-2
[root@xuniji ~]# export PATH=/sbin:$PATH
[root@xuniji ~]# chkconfig
chkconfig version 1.3.30.1 - Copyright (C) 1997-2000 Red Hat,Inc.
This may be freely redistributed under the terms of the GNU PublicLicense.
usage: chkconfig --list[name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig [--level <levels>]<name><on|off|reset|resetpriorities>
[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin
[root@xuniji ~]# PATH="$PATH":/sbin
[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin:/sbin
这样就可以使用chkconfig命令了。
相关文章推荐
- bash:chkconfig:command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash: chkconfig: command not found
- bash:chkconfig:command not found
- bash: scp: command not found的原因及解决办法
- bash: rz: command not found
- -bash: wget: command not found的两种解决方法
- bash: ifconfig: command not found 问题解决
- -bash: pod: command not found
- -bash: netstat: command not found
- -bash: wget: command not found的两种解决方法
- scp命令报错-bash: scp: command not found
- bash: crontab: command not found
- bash: id : command not found -bash: tty: command not found
- 编译Android,遇到Your version is: /bin/bash: java: command not found.错误的解决