linux 中chkconfig命令

如何使用linux中的chkconfig命令???

首先当然要安装了,在cygwin中,选择插件的界面,在system下面,选择带chkconfig的那一项、、、、安装即可、、、

有个问题就是,当你用命令查看该命令的帮助文档时,显示已经安装了,

但是仍然不能用。。。

提示如下:

"bash: chkconfig: command not found".

是因为 bash 使用 “$PATH” 决定在哪儿去找到相应的可执行程序。。。

经过搜索,在网上有这么一段解释:

"bash" uses the "$PATH" variable to detremine where to find executable programs.

"chkconfig" probably is in root's "$PATH" but not in your "$PATH"
and by using "su" you only get a shell with root user rights, but not
with root's environment (includung $PATH). Use "su -" to get root
rights and environment.

于是,按照上面的提示,输入如下命令:

su -

完了之后输入root密码,就到了如下目录:

[root@serverhost ~]#

这个时候输入命令:

 chkconfig --list

即可看到结果了、、、

猜你喜欢

转载自lxs647.iteye.com/blog/1336656
今日推荐