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

 

即可看到结果了、、、

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值