yodacom
9/15/2017 - 6:47 PM

How to log out a running server on local port

How to log out a running server on local port

// run 
sudo lsof -i :3000

//  enter your machines passord:
Password:

// note the PID which here is 4929 but will be diff on your machine
node      4920 jjblack  122u  IPv6 0xc21d19032b04e11b      0t0  TCP localhost:hbci->localhost:50710 (ESTABLISHED)
node      4920 jjblack  123u  IPv6 0xc21d19033af8f65b      0t0  TCP localhost:hbci->localhost:54008 (ESTABLISHED)

// Then the following command
~ jjblack$ kill -9 4920