LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to kill the process running on specific port in linux (https://www.linuxquestions.org/questions/linux-general-1/how-to-kill-the-process-running-on-specific-port-in-linux-578408/)

rajaniyer123 08-20-2007 09:11 AM

How to kill the process running on specific port in linux
 
Hi

As I would like to stop the process which is running on port 8080 in linux server. Can you tell me which is the command for it

unSpawn 08-20-2007 10:32 AM

'lsof -w -n -i tcp:8080' or 'fuser -n tcp 8080' or 'netstat -anp|grep :8080[[:blank:]]' should show you the process ID. If there is no (init)script to use to shut down the offending service (since TCP/8080 means proxy) to kill you can by PID 'kill -9 pidnumber'.

pedro.lego 12-01-2009 05:35 PM

unSpawn,
Very good solution!


All times are GMT -5. The time now is 06:01 AM.