Kill process by port number in ubuntu .Maui 6 years ago Assuming that the process we want to close is running on port 9222, run this command: kill `sudo lsof -t -i:9222`