0

Trying to build an experimental CRUD app, however there is an issue connecting to db.

Using mLab free db. No matter which port is specified the error is EADDRINUSE :::

How do I close all Node instances that might be using these ports?

Rain
  • 249
  • 6
  • 14
  • use ps aux | grep node to find all the node process, and use sudo kill -9 PID to kill the process – Subburaj Jan 06 '17 at 09:09
  • Solution is here-> http://stackoverflow.com/questions/8553957/how-to-release-localhost-from-error-listen-eaddrinuse/22875192#22875192 – Riya Saxena Jan 06 '17 at 09:09

1 Answers1

0

Solution is already given here.

How to fix Error: listen EADDRINUSE while using nodejs?

To check which ports are in use , try this command

netstat -ntlp

to check node JS processes (instance of your app or other using the same port yu are requesting ) running

ps aux | grep -i node 

and kill relevant processes by

kill *process-id* | killall node
Community
  • 1
  • 1
Farooq Ahmed Khan
  • 3,975
  • 3
  • 27
  • 36