第一次用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

 

大功告成!!!

相关文章:

  • 2021-08-11
  • 2021-10-11
  • 2021-11-01
  • 2022-02-27
  • 2021-12-11
  • 2021-10-22
  • 2021-07-28
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-09-05
  • 2021-07-17
  • 2021-07-22
相关资源
相似解决方案