- 論壇徽章:
- 33
|
哪有這么取的.- # ps -ef | grep httpd
- root 4548 1 0 May05 ? 00:00:21 /usr/sbin/httpd
- root 16258 11256 0 12:00 pts/3 00:00:00 grep httpd
- apache 25420 4548 0 May11 ? 00:00:08 /usr/sbin/httpd
- apache 25422 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25423 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25424 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25425 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25426 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25427 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25428 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25429 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- # ps -ef | grep [h]ttpd
- root 4548 1 0 May05 ? 00:00:21 /usr/sbin/httpd
- apache 25420 4548 0 May11 ? 00:00:08 /usr/sbin/httpd
- apache 25422 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25423 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25424 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25425 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25426 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25427 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25428 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25429 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
復(fù)制代碼 上面是正確的取法.
你那個(gè)bash加上之后, 多了一個(gè) 子shell, 而這個(gè)shell的名字很可能跟你的keepa是匹配的. 所以, 才會多出兩個(gè). 改個(gè)名字, 再用上面我的試試. |
|