歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> Solaris系統常用的進程啟停

Solaris系統常用的進程啟停

日期:2017/2/28 11:13:26   编辑:關於Unix


一:sendmail進程啟停說明:

1、/etc/init.d/sendmail stop停止senmail進程
vc2# /etc/init.d/sendmail stop

進程信息狀態的核實
vc2# ps -ef |grep sendmail
root 2808 2720 0 09:43:29 pts/5 0:00 grep sendmail
vc2# ps -A
PID TTY TIME CMD
0 ? 0:01 sched
1 ? 0:02 init
2 ? 0:00 pageout
3 ? 8:43 fsflush
230 ? 0:00 rpcbind
7 ? 0:19 svc.star
127 ? 0:00 picld
233 ? 0:01 nfsmapid
243 ? 0:00 ttymon
203 ? 0:00 cron
239 ? 0:00 sac
107 ? 0:00 sysevent
386 ? 0:15 fmd
110 ? 0:01 kcfd
138 ? 0:29 nscd
135 ? 0:00 powerd
271 console 0:00 ttymon
235 ? 0:00 nfs4cbd
242 ? 0:09 inetd
368 ? 0:00 sshd
352 ? 0:01 automoun
246 ? 0:00 statd
351 ? 0:00 automoun
260 ? 0:00 lockd
265 ? 0:02 utmpd
279 ? 0:00 smcboot
281 ? 0:00 smcboot
280 ? 0:00 smcboot
439 ? 0:07 snmpd
663 pts/2 0:00 sh
558 ? 0:00 dtlogin
705 ? 4:17 sdtperfm
371 ? 0:01 syslogd
510 ? 0:00 dtlogin
2656 ? 0:00 dtexec
458 ? 0:00 snmpXdmi
776 ? 0:00 dtexec
405 ? 0:02 vold
419 ? 0:00 snmpdx
448 ? 0:00 dmispd
514 ?? 0:00 fbconsol
441 ? 0:00 devfsadm
515 ? 4:42 Xsun
691 pts/2 0:00 ttsessio
578 ? 0:00 Xsession
777 ? 0:12 dtscreen
599 ? 0:00 speckeys
2688 ? 0:00 in.telne
660 pts/2 0:00 sdt_shel
661 ? 0:00 dsdm
692 pts/2 2:52 dtsessio
693 ? 0:00 rpc-ttdb
698 ? 0:00 rpc.ttdb
704 ? 0:23 dtwm
713 ? 4:57 rpc.rsta
707 ? 0:00 sdtvolch
2617 ? 0:00 dsdm
744 ? 0:00 cat
2503 ? 0:00 dtlogin
2527 ? 0:00 Xsession
2659 syscon 0:00 sh
2691 pts/5 0:00 sh
2646 pts/3 0:00 ttsessio
2653 ? 0:02 dtwm
2620 pts/3 0:00 sdt_shel
2654 ? 0:04 sdtperfm
2720 pts/5 0:00 csh
2647 pts/3 0:00 dtsessio
2810 pts/5 0:00 ps
2657 ?? 0:05 dtterm
2622 pts/3 0:00 sh
二:用/etc/init.d/sendmail start命令啟動sedmail進程;該方式最好

vc2# /etc/init.d/sendmail start
vc2# ps -ef |grep sendmail
smmsp 2818 1 0 09:48:43 ? 0:00 /usr/lib/sendmail -Ac -q15m
root 2823 2720 0 09:48:53 pts/5 0:00 grep sendmail
root 2817 1 0 09:48:43 ? 0:00 /usr/lib/sendmail -bd -q15m

三:停止sendmail進程用/usr/lib/sendmail -bd -q15m命令啟動sendmail進程
vc2# ps -ef |grep sendmail
root 2836 2720 0 09:51:50 pts/5 0:00 grep sendmail
vc2# /usr/lib/sendmail -bd -q15m
vc2# ps -ef |grep sendmail
root 2838 1 0 09:52:53 ? 0:00 /usr/lib/sendmail -bd -q15m
vc2#
vc2# ps -A
PID TTY TIME CMD
0 ? 0:01 sched
1 ? 0:02 init
2 ? 0:00 pageout
3 ? 8:43 fsflush
230 ? 0:00 rpcbind
7 ? 0:19 svc.star
127 ? 0:00 picld
233 ? 0:01 nfsmapid
243 ? 0:00 ttymon
203 ? 0:00 cron
239 ? 0:00 sac
107 ? 0:00 sysevent
386 ? 0:15 fmd
110 ? 0:01 kcfd
138 ? 0:29 nscd
135 ? 0:00 powerd
271 console 0:00 ttymon
235 ? 0:00 nfs4cbd
242 ? 0:09 inetd
368 ? 0:00 sshd
352 ? 0:01 automoun
246 ? 0:00 statd
351 ? 0:00 automoun
260 ? 0:00 lockd
265 ? 0:02 utmpd
279 ? 0:00 smcboot
281 ? 0:00 smcboot
280 ? 0:00 smcboot
439 ? 0:07 snmpd
663 pts/2 0:00 sh
558 ? 0:00 dtlogin
705 ? 4:17 sdtperfm
371 ? 0:01 syslogd
510 ? 0:00 dtlogin
2656 ? 0:00 dtexec
458 ? 0:00 snmpXdmi
776 ? 0:00 dtexec
405 ? 0:02 vold
419 ? 0:00 snmpdx
448 ? 0:00 dmispd
514 ?? 0:00 fbconsol
441 ? 0:00 devfsadm
2838 ? 0:00 sendmail
515 ? 4:43 Xsun
691 pts/2 0:00 ttsessio
578 ? 0:00 Xsession
777 ? 0:12 dtscreen
599 ? 0:00 speckeys
2688 ? 0:00 in.telne
660 pts/2 0:00 sdt_shel
661 ? 0:00 dsdm
692 pts/2 2:52 dtsessio
693 ? 0:00 rpc-ttdb
698 ? 0:00 rpc.ttdb
704 ? 0:23 dtwm
713 ? 4:57 rpc.rsta
707 ? 0:00 sdtvolch
2617 ? 0:00 dsdm
744 ? 0:00 cat
2503 ? 0:00 dtlogin
2527 ? 0:00 Xsession
2659 syscon 0:00 sh
2691 pts/5 0:00 sh
2646 pts/3 0:00 ttsessio
2653 ? 0:02 dtwm
2620 pts/3 0:00 sdt_shel
2654 ? 0:05 sdtperfm
2720 pts/5 0:00 csh
2647 pts/3 0:00 dtsessio
2842 pts/5 0:00 ps
2657 ?? 0:06 dtterm
2622 pts/3 0:00 sh
vc2# ps -ef |grep sendmail
root 2838 1 0 09:52:53 ?
Copyright © Linux教程網 All Rights Reserved