'PID'에 해당하는 글 1건

 httpd 를 확인하여 종료하기

root@www ~ [1.44 1.28]> ps -ef | grep httpd | grep -v grep
nobody    6570 25612  0 Dec04 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    6571 25612  0 Dec04 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    6572 25612  0 Dec04 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    9025 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    9026 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    9027 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    9028 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody    9031 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
nobody   24980 25612  0 Dec02 ?        00:00:00 /usr/local/httpd2/bin/httpd -k start
root     25612     1  0 Jul25 ?        00:00:03 /usr/local/httpd2/bin/httpd -k start



pid 만 구한다.

root@www ~ [1.44 1.28]> ps -ef | grep httpd | grep -v grep | awk '{print $2}'
6570
6571
6572
9025
9026
9027
9028
9031
24980
25612

종료 시그널 9번을 이용하여 모두 종료한다.

root@www ~ [1.44 1.28]> ps -ef | grep httpd | grep -v grep | awk '{print $2}' | xargs kill -9


다시 확인해 보면 실행된것이 없다.
root@www ~ [1.44 1.28]> ps -ef | grep httpd | grep -v grep


저작자 표시 비영리 동일 조건 변경 허락
신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret