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