ps-aux的出现太多了,不利于看
chkconfig--listhttpd这样是查看服务运行级别的
service用法:
SYNOPSIS
serviceSCRIPTCOMMAND[OPTIONS]
service--status-all
service--help|-h|--version
DESCRIPTION
servicerunsaSystemVinitscriptinaspredictableenvironmentas
possible,removingmostenvironmentvariablesandwithcurrentworking
directorysetto/.
TheSCRIPTparameterspecifiesaSystemVinitscript,locatedin
/etc/init.d/SCRIPT.ThesupportedvaluesofCOMMANDdependonthe
invokedscript,servicepassesCOMMANDandOPTIONSittotheinit
scriptunmodified.Allscriptsshouldsupportatleastthestartand
stopcommands.Asaspecialcase,ifCOMMANDis--full-restart,the
scriptisruntwice,firstwiththestopcommand,thenwiththestart
command.
例:
servicehttpdstart
service--status-all#列出所有的服务运行状态
service--status-all|grephttpd#查看某个服务的运行状态
在fedora在图形化的设置开机启动:
#ntsysv
阅读(377) | 评论(0) | 转发(0) |