bash: chkconfig: command not found
2011-05-06 21:30
471 查看
第一次用linux操作系统,想给httpd服务打开,但是发现bash: chkconfig: command not found,就百度了一下,发现,原来这样就可以了。。。就有了!
bash: chkconfig: command not found
[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 Public License.
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
大功告成!!!
bash: chkconfig: command not found
[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 Public License.
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
大功告成!!!
相关文章推荐
- 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: ifconfig: command not found 解决办法
- Linux(centos)不能使用FTP 命令 -bash: ftp: command not found
- -bash: zip: command not found提示解决办法
- windows生成GIT SSH发生错误 bash: $'\302\226': command not found
- -bash: pod: command not found 系统升级后CocoaPods 出现的问题
- -bash: ls: command not found
- -bash: make: command not found
- SecureCRTPortable SecureCRT上传bash: rz: command not found
- centos 下bash: adb: command not found解决办法
- -bash: pecl: command not found
- Linux 出现-bash: grunt: command not found 错误解决