ITPub博客

首页 > Linux操作系统 > Linux操作系统 > solaris svcs命令

solaris svcs命令

原创 Linux操作系统 作者:hongchao126 时间:2009-10-22 15:47:06 0 删除 编辑
1.# svcs -a
显示系统上所有的服务及其它们的状态.
1. disabled Apr_18 svc:/network/rpc/keyserv:default
2. disabled Apr_18 svc:/network/rpc/nisplus:default
3. disabled Apr_18 svc:/application/print/server:default
4. disabled Apr_18 svc:/network/dhcp-server:default
5. disabled Apr_18 svc:/network/http:apache2
6. online Apr_18 svc:/system/svc/restarter:default
7. online Apr_18 svc:/network/pfil:default
8. online Apr_18 svc:/network/physical:default
9. online Apr_18 svc:/system/identity:domain
10. online Apr_18 svc:/system/cryptosvc:default
11. online Apr_18 svc:/network/inetd:default
12. online Apr_18 svc:/network/telnet:default
13. online Apr_18 svc:/network/ssh:default
14. online Apr_18 svc:/system/zones:default
15. online Apr_18 svc:/network/nfs/nlockmgr:default
16. offline Apr_18 svc:/application/print/ipp-listener:default
17. offline Apr_18 svc:/application/print/rfc1179:default
2.svcs service
查看单个服务及其状态
# svcs inetd
STATE STIME FMRI
online Apr_18 svc:/network/inetd:default
# svcs apache2
STATE STIME FMRI
disabled Apr_18 svc:/network/http:apache2
3.svcs –d service
显示该服务所依赖的服务,如
# svcs -d inetd
disabled Apr_18 svc:/network/inetd-upgrade:default
online Apr_18 svc:/milestone/name-services:default
online Apr_18 svc:/network/loopback:default
online Apr_18 svc:/milestone/network:default
online Apr_18 svc:/system/filesystem/local:default
online Apr_18 svc:/network/rpc/bind:default
online Apr_18 svc:/milestone/sysconfig:default
3.svcs –D service
显示依赖于该服务的服务,如
# svcs -D inetd
STATE STIME FMRI
online Apr_18 svc:/milestone/multi-user:default
4.svcs –p service
显示该服务的进程号,如:
# svcs -p apache2
STATE STIME FMRI
online 11:25:33 svc:/network/http:apache2
11:25:33 2438 httpd
11:25:34 2439 httpd
11:25:34 2440 httpd
11:25:34 2441 httpd
11:25:34 2442 httpd
11:25:34 2443 httpd
5.svcs –l service
显示该服务的所有可用信息,如:
# svcs -l apache2
fmri svc:/network/http:apache2
name Apache 2 HTTP server
enabled true
state online
next_state none
state_time Wed Jun 07 11:47:04 2006
logfile /var/svc/log/network-http:apache2.log
restarter svc:/system/svc/restarter:default
contract_id 297
dependency require_all/error svc:/network/loopback:default (online)
dependency optional_all/error svc:/network/physical:default (online)
6.svcs –x service
此命令可以显示有关该服务的一些解释信息,如:
#svcs -x http
svc:/network/http:apache2 (Apache 2 HTTP server)
State: online since Tue Jun 06 11:28:05 2006
See: apache2(1M)
See: /var/svc/log/network-http:apache2.log
Impact: None.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14673072/viewspace-617179/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-10-11

  • 博文量
    10
  • 访问量
    52851