Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to release localhost from Error: listen EADDRINUSE

i am testing a server written in nodejs on windows 7 and when i try to run the tester in the command line i get the following error

Error: listen EADDRINUSE at errnoException (net.js:614:11) at Array.0 (net.js:704:26) at EventEmitter._tickCallback (node.js:192:40) 

how can I fix it without rebooting?

like image 916
adam Avatar asked Dec 18 '11 18:12

adam


1 Answers

Run:

ps -ax | grep node 

You'll get something like:

60778 ??         0:00.62 /usr/local/bin/node abc.js 

Then do:

kill -9 60778 
like image 197
Komposr Avatar answered Oct 10 '22 04:10

Komposr