728x90
반응형
SMALL
안녕하세요! 프뚜입니다.
Linux 계열에서 process를 종료한적은 많았어도, Windows에서 프로세스를 종료하려고 했더니 명령어가 기억이 안나더라구요..... 저와 같은 개발자 또는 사용자분들을 위해 포스팅합니다.
Linux는 kill -9 [pid]입니다.
[개발 환경]
- OS: Windows 10 64bit
1. Windows 프로세스 확인하기
netstat -nao | find "port"
-n: 주소나 포트 형식을 숫자로 표현한다.
-a: 모든 연결 및 수신 대기 포트를 표시한다.
-o: 각 연결의 소유자 프로세스 ID를 표시한다.
-c: 현재 실행 명령을 매 1초마다 실행한다.
-l: LISTEN 하고 있는 포트를 보여 준다.
-t: TCP 로 연결된 포트를 보여 준다.
-u: UDP 로 연결된 포트를 보여 준다.
-p: 해당 프로세스를 사용하고 있는 프로그램 이름을 보여 준다.
-r: 라우팅 테이블을 보여 준다.
2. 프로세스 강제 종료 하기
taskkill /f /pid [프로세스ID]
/f: 프로세스 강제종료
/pid: 프로세스 ID
728x90
반응형
LIST
'프로그램 > ETC' 카테고리의 다른 글
[IntelliJ] 인텔리제이 메모리 변경하기 (2) | 2022.12.13 |
---|---|
[JAVA] SpringBoot 자동 리로드(liveReload) 설정 및 사용방법 (1) | 2022.12.12 |
[Windows 10] PowerShell 또는 CMD 한글 깨짐 해결 (UTF-8) (0) | 2022.12.01 |
[Windows 10] 바탕화면 휴지통 없애기 (제거, 삭제) (0) | 2022.11.30 |
[Windows 10] 간단하게 윈도우10 정품인증 하기 (모든 OS 정보 Key 포함) (1) | 2022.10.31 |