Chinaunix首页 | 论坛 | 博客
  • 博客访问: 761723
  • 博文数量: 790
  • 博客积分: 40560
  • 博客等级: 大将
  • 技术积分: 5065
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-28 16:29
文章分类

全部博文(790)

文章存档

2011年(1)

2008年(789)

我的朋友

分类: LINUX

2008-08-28 17:26:02

 
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) |
给主人留下些什么吧!~~