06 May
2006

さきほどの SMF でもうちょっと実験をしてみた

結構便利かもしれないと思ったが、先ほどの実験は全ての httpd を kill したものなので、今度は一つずつプロセスを kill してみた。


最初は、6つのプロセスが起動している。

# ps ax | grep httpd
 18889 ?        R  0:00 /usr/local/apache2/bin/httpd -k start
 18894 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18895 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18896 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18897 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

ここで、一つだけプロセスを kill してみる。

# kill -9 18889

そうすると、、、、

# ps ax | grep httpd
 18894 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18895 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18896 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18897 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

一つだけ消えたままだ。もうひとつやってみる。

# kill -9 18894
# ps ax | grep httpd
 18895 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18896 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18897 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

もうひとつ。

# kill -9 18895
# ps ax | grep httpd
 18896 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18897 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

さらにもうひとつ。

# kill -9 18896
# ps ax | grep httpd
 18897 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

まだまだか。。。さらに kill してみる。

# kill -9 18897
# ps ax | grep httpd
 18898 ?        S  0:00 /usr/local/apache2/bin/httpd -k start

最後の一つを kill すると。。。

# kill -9 18898
# ps ax | grep httpd
 18936 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18941 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18942 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18943 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18944 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
 18945 ?        S  0:00 /usr/local/apache2/bin/httpd -k start
#

ふう。やっと復活。:-)
だけど。。。。設定を調べてみようか。

Posted by Satoshi at 03:25 | Comments (0) | Trackbacks (0) | このエントリーを含むはてなブックマーク
Comments
There is no comment.
Trackbacks
Please send trackback to:http://www.randynetwork.com/blog/239/tbping
There is no trackback.
Post a comment