My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping


Wednesday, March 11, 2020

find what uses a port like 8080 kill the process on mac

Many a times during debugging, you find that your port is already used. You can find at this point where it is used and kill the process.

Step 1: Find all processes using port
$ netstat -vanp tcp | grep 8080

Step 2: Kill the task
eg: $ sudo kill -9 73804

Refer screen shot below:

cheers :)

No comments:

Post a Comment