Kill a Process Running on Port

First of all, find out the PID (process id) of the running process on a specific port. For example, a process is running on port 3000. To find its process id, execute: Now you have the PID of the process running on a port. Use the kill command to terminate that process by its PID. You will notice that the process running on the specific port is terminated.

Short Version of Command

You can also combine both of the above commands and run it as follows:

Conclusion

In this faq, you have learned to terminate a process running on a specific port.