+ -
当前位置:首页 → 问答吧 → 屏保问题

屏保问题

时间:2011-11-10

来源:互联网

$service smbd start
start: Job is already running smbd

$chkconfig smbd --list
smbd 0:off 1:off 2:off 3:off 4:off 5:off

问题1: 请问下我用service这个命令启动了smbd这个服务,为何用chkconfig查看时在各运行级别都未开启?
问题2: service与chkconfig在查看/启动/停止服务方面到底有何区别? 同样是查看服务状态,为何得到的是不同的结果?
先谢谢各位了,百度了很久都没看到讲得明白的,所以才到这里来请教各位,请大家多多讨论!!

作者: HMK-Linux   发布时间: 2011-11-10

问题1.chkconfig查看的是系统启动时启动的服务,也就是说,如果系统默认不启动,那查看就是未开启(我还是习惯update-rc.d,sysv-rc-conf和rcconf也不错)
问题2.service(invok-rc.d相同作用) 命令是用来手工启动关闭服务的,chkconfig是设定服务在系统开启时是否启动的

作者: onlylove   发布时间: 2011-11-10

这里楼上也讲到了几个配置工具的使用, 我在使用过程中也发现了一个问题, 就是关于chkconfig与sysv-rc-conf在开启/关闭某项服务时的区别, 以bluetooth蓝牙服务为例
chkconfig bluetooth off; 出现一连串的问题: insserv: warning: script 'K20acpi-support' missing LSB tags and overrides. The script you are attempting to invoke has been coverted to an Upstart job, but lsb-header is not supported for Upstart job.....
而sysv-rc-conf bluetooth off; 完全正常;
这是怎么一回事,他们在开启/关闭服务方面有何区别, 对应什么类型服务?

作者: HMK-Linux   发布时间: 2011-11-25

相关阅读 更多