pstree init-+-bdflush |-crond |-html_page_make. |-httpd---11*[httpd] |-kapmd |-keventd |-8*[kjournald] |-klogd |-kscand/DMA |-kscand/HighMem |-kscand/Normal |-ksoftirqd_CPU0 |-kswapd |-kupdated |-login---bash |-mdrecoveryd |-5*[mingetty] |-named |-pure-ftpd---2*[pure-ftpd] |-safe_mysqld---mysqld |-2*[sendmail] |-sendmail---6*[sendmail] |-syslogd `-xinetd---in.telnetd---login---bash---.s---bash---pstree [root@localhost root]# [root@localhost root]# ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1368 80 ? S 2006 0:08 init root 2 0.0 0.0 0 0 ? SW 2006 0:00 [keventd] root 3 0.0 0.0 0 0 ? SW 2006 0:00 [kapmd] root 4 0.0 0.0 0 0 ? SWN 2006 0:02 [ksoftirqd_CPU0] root 9 0.0 0.0 0 0 ? SW 2006 0:00 [bdflush] root 5 0.0 0.0 0 0 ? SW 2006 0:42 [kswapd] root 6 0.0 0.0 0 0 ? SW 2006 0:00 [kscand/DMA] root 7 0.0 0.0 0 0 ? SW 2006 94:25 [kscand/Normal] root 8 0.0 0.0 0 0 ? SW 2006 0:00 [kscand/HighMem] root 10 0.0 0.0 0 0 ? SW 2006 0:02 [kupdated] root 11 0.0 0.0 0 0 ? SW 2006 0:00 [mdrecoveryd] root 15 0.0 0.0 0 0 ? SW 2006 0:02 [kjournald] root 130 0.0 0.0 0 0 ? SW 2006 0:00 [kjournald] root 131 0.0 0.0 0 0 ? SW 2006 0:35 [kjournald] root 132 0.0 0.0 0 0 ? SW 2006 0:14 [kjournald] root 133 0.0 0.0 0 0 ? SW 2006 0:00 [kjournald] root 134 0.0 0.0 0 0 ? SW 2006 0:15 [kjournald] root 135 0.0 0.0 0 0 ? SW 2006 3:25 [kjournald] root 441 0.0 0.0 1440 204 ? S 2006 1:42 syslogd -m 0 root 445 0.0 0.0 1372 0 ? SW 2006 0:00 klogd -x root 476 0.0 0.0 2020 356 ? S 2006 0:50 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid root 485 0.0 0.0 4024 160 ? S 2006 0:02 pure-ftpd (SERVER) root 494 0.0 0.0 1412 124 ? S 2006 0:00 crond root 513 0.0 0.0 2260 0 ? SW 2006 0:00 login -- root root 514 0.0 0.0 1352 0 tty2 SW 2006 0:00 /sbin/mingetty tty2 root 515 0.0 0.0 1352 0 tty3 SW 2006 0:00 /sbin/mingetty tty3 root 516 0.0 0.0 1352 0 tty4 SW 2006 0:00 /sbin/mingetty tty4 root 517 0.0 0.0 1352 0 tty5 SW 2006 0:00 /sbin/mingetty tty5 root 518 0.0 0.0 1352 0 tty6 SW 2006 0:00 /sbin/mingetty tty6 root 600 0.0 0.0 5228 0 ? SW 2006 0:00 /bin/sh /usr/local/mysql/bin/safe_mysqld mysql 614 2.6 1.5 30432 7652 ? S 2006 3101:09 [mysqld] root 619 0.0 0.0 9884 120 ? S 2006 0:05 /usr/local/apache/bin/httpd # httpd 데몬 부모 프로세스 root 9732 0.0 0.0 0 0 ? SW 2006 0:00 [kjournald] root 1229 0.0 0.0 5464 0 tty1 SW Jan05 0:00 -bash root 31973 0.0 0.0 7144 0 ? SW Jan18 0:00 [sendmail] root 19469 0.0 0.1 5920 556 ? S Feb16 1:24 [sendmail] smmsp 19478 0.0 0.0 5716 320 ? S Feb16 0:00 [sendmail] root 347 0.0 0.0 7152 0 ? SW Feb22 0:00 [sendmail] iwav 15268 0.0 0.2 6112 1072 ? S Mar08 0:13 /usr/bin/python ./html_page_make.py root 11225 0.0 0.0 6276 0 ? SW Mar15 0:00 [sendmail] nobody 14403 0.2 0.8 11572 4128 ? S 04:02 1:39 [httpd] nobody 14404 0.2 0.9 12188 4764 ? S 04:02 1:36 [httpd] nobody 14405 0.2 0.8 11656 4428 ? S 04:02 1:40 [httpd] nobody 14406 0.2 0.8 11580 4212 ? S 04:02 1:51 [httpd] nobody 14407 0.2 0.9 12120 4880 ? S 04:02 1:41 [httpd] nobody 14505 0.2 1.1 12736 5640 ? S 04:02 1:30 [httpd] nobody 14563 0.2 1.0 12664 5264 ? S 04:03 1:35 [httpd] nobody 14615 0.2 0.9 11772 4756 ? S 04:05 1:34 [httpd] nobody 14839 0.2 0.8 11592 4208 ? S 04:13 1:31 [httpd] nobody 14842 0.2 0.8 11628 4388 ? S 04:13 1:44 [httpd] # 자식 프로세스 named 30737 0.0 0.7 31972 3624 ? S 10:56 0:13 [named] root 7551 0.0 0.0 4140 348 ? S 14:08 0:00 [pure-ftpd] root 10370 0.0 0.1 6268 764 ? S 15:03 0:00 [sendmail] root 10456 0.0 0.1 6268 800 ? S 15:05 0:00 [sendmail] root 10883 0.0 0.1 4064 576 ? S 15:14 0:00 [pure-ftpd] root 11107 0.0 0.4 6268 2080 ? S 15:17 0:00 [sendmail] root 11172 0.0 0.1 1580 664 ? S 15:18 0:00 in.telnetd: 61.36.16.76 root 11173 0.0 0.2 2272 1112 ? S 15:18 0:00 [login] iwav 11178 0.0 0.2 5432 1420 pts/2 S 15:19 0:00 -bash root 11197 0.0 0.1 5116 920 pts/2 S 15:19 0:00 [.s] root 11199 0.0 0.2 5452 1440 pts/2 S 15:19 0:00 -bash root 11300 0.0 0.3 6260 1956 ? S 15:20 0:00 [sendmail] root 11309 0.0 0.3 6260 1956 ? S 15:20 0:00 [sendmail] root 11311 0.5 0.4 6880 2352 ? S 15:20 0:00 [sendmail] root 11313 0.0 0.1 2644 700 pts/2 R 15:20 0:00 ps -aux
kllall httpd
kill -9 부모 프로세스
|