MareArts ANPR mobile app

Showing posts with label lsof. Show all posts
Showing posts with label lsof. Show all posts

5/18/2024

Kill process which use specific port



1. find pid

> lsof -i :8188

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

Code\x20H 76433 ccxxxxx 46u IPv4 0xc8a9187a02c84768 0t0 TCP localhost:8188 (LISTEN)




2. kill process

> kill -9 76433



That's it
Thank you!






3/12/2024

Search process by port number on ubuntu and kill it.

 

>sudo lsof -i :8188

python  231134 mare   45u  IPv4 2074469      0t0  TCP localhost:8188->localhost:42132 (CLOSE_WAIT)

python  231134 mare   46u  IPv4 2105633      0t0  TCP localhost:8188->localhost:57870 (CLOSE_WAIT)

python  231134 mare   47u  IPv4 2074473      0t0  TCP localhost:8188->localhost:42160 (CLOSE_WAIT)

python  231134 mare   48u  IPv4 2103693      0t0  TCP localhost:8188->localhost:57886 (CLOSE_WAIT)


> kill -9 231134


πŸ™‡πŸ»‍♂️