Search the process blocking a port in Ubuntu and Kill it

[ubuntu@ip-172-31-44-59:~]$netstat -plten
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1000       23998       13462/node
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          7177        -
tcp6       0      0 :::22                   :::*                    LISTEN      0          7179        -


kill -9 13462

No comments:

Post a Comment