반응형
kill 명령어
httpd 프로세스 확인
ps -ef | grep httpd
$ ps -ef | grep httpd
root 5620 1 0 10:39 ? 00:00:00 /app/apache/bin/httpd -k start
daemon 5621 5620 0 10:39 ? 00:00:00 /app/apache/bin/httpd -k start
daemon 5622 5620 0 10:39 ? 00:00:00 /app/apache/bin/httpd -k start
daemon 5623 5620 0 10:39 ? 00:00:00 /app/apache/bin/httpd -k start
daemon 5747 5620 0 10:40 ? 00:00:00 /app/apache/bin/httpd -k start
kill 명령어로 특정 프로세스 한번에 죽이기
ps -ef | grep -v grep | grep httpd | awk '{print $2}' | xargs kill -9
ps -ef | grep -v grep | grep httpd
killall 명령어
: 시스템의 프로세스를 관리하기위한 유틸리티
$ killall
-bash: killall: command not found
killall 명령어 설치
centos
yum install -y psmisc
ubuntu
apt install -y psmisc
반응형
'리눅스' 카테고리의 다른 글
[리눅스] ubuntu rcconf(redhat:ntsysv) 명령어 (0) | 2015.03.09 |
---|---|
[우분투] ubuntu static dns(resolv.conf) 설정 (1) | 2015.03.09 |
[리눅스] 우분투 APM 소스 설치 (0) | 2015.03.02 |
[리눅스] ubuntu mysql libncurses 에러 (0) | 2015.03.02 |
[리눅스] 우분투 apache mod_ssl 에러 (0) | 2015.03.02 |