红联Linux门户
Linux帮助

chkconfig和service

发布时间:2007-02-13 10:15:00来源:红联作者:catchingfish
查看当前所有已启动的服务,并重启服务

用chkconfig --list |less看

[root@linux01 root]# chkconfig --list | less

用service [服务名] start或[stop,restart]启动,关闭,重启

比如:

[root@linux01 root]# service vsftpd restart
关闭 vsftpd: [ 确定 ]
为 vsftpd 启动 vsftpd: [ 确定 ]
[root@linux01 root]#

还有一个办法,其实这些服务都是针对standalone模式运行的服务,如果是用xinetd运行的模式,修改好文件后,重启xinetd就行了。
[root@linux01 root]# /etc/init.d/vsftpd restart
关闭 vsftpd: [ 确定 ]
为 vsftpd 启动 vsftpd: [ 确定 ]
[root@linux01 root]#
文章评论

共有 1 条评论

  1. honckly 于 2007-02-13 22:42:33发表:

    :D
    !!小技巧还是相当好使的!!