Thursday 10 July 2014

Close port on Linux

sudo netstat -lpn | grep 8080
will list the process on port 8080
example:
tcp      0     0   :::8080      :::*      LISTEN   21026/java

kill 21026

No comments:

Post a Comment