首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux基本应用 > 文章内容

fedora 查看运行的服务

作者:佚名  来源:不详  发布时间:2008-6-25 8:20:00
ps -aux的出现太多了,不利于看

chkconfig --list httpd 这样是查看服务运行级别的

service用法:
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]

service --status-all

service --help | -h | --version

DESCRIPTION
service runs a System V init script in as predictable environment as
possible, removing most environment variables and with current working
directory set to /.

The SCRIPT parameter specifies a System V init script, located in
/etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init
script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the
script is run twice, first with the stop command, then with the start
command.

例:

service httpd start
service --status-all #列出所有的服务运行状态
service --status-all |grep httpd #查看某个服务的运行状态

在fedora在图形化的设置开机启动:

#ntsysv
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图