How to kill a proccess that run in port from zsh terminal

Viewed 164

I run nodejs server in port 3333

How can I kill the process / terminal that run the server?

1 Answers

You can use :

sudo kill -9 $(sudo lsof -t -i:3333)
Related