NodeJS - express js - mengatasi EADDRINUSE, Address already in use

Check the PID i.e. id of process running on port 3000 with below command :

lsof -i tcp:3000

It would output something like following:

COMMAND  PID   USER   FD   TYPE  DEVICE  SIZE/OFF NODE NAME
node     5805  xyz    12u  IPv6  63135    0t0     TCP  *:3000 (LISTEN)

Now kill the process using :

kill -9 5805

1 Komentar


  1. Really impressed with this. That part about workflows vs. projects is a standout—it’s vital for real-world application and rarely explained this well. Definitely one of the more intuitive guides I've found on the good knowledge of expressjs-tutorial lifecycle. Great job!.

    BalasHapus
Lebih baru Lebih lama