Kill process by port number in ubuntu

Assuming that the process we want to close is running on port 9222, run this command:

kill `sudo lsof -t -i:9222`

Leave a Comment

Your email address will not be published. Required fields are marked *