- Open Terminal.
- Run the command with the port used : example :
lsof -i :<port_number>
Now kill the process by running the following command :
kill -9 <PID>
lsof -i :<port_number>
Now kill the process by running the following command :
kill -9 <PID>