Wednesday, July 6, 2016

How to stop node.js server?


You  can run the node server by typing:
node server.js
But how to stop it ? typing command CTRL+C  might not kill the process and then end up with error like the following 

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EADDRINUSE
    at errnoException (net.js:901:11)
    at net.js:1081:30
So another option that worked for me is issuing the following command 
killall -KILL node

cheers !!



1 comment:

  1. The IEEE Xplore digital library is your gateway to trusted research—journals, conferences, standards, ebooks, and educational courses—with more than 3 million articles to help you fuel imagination, build from previous research, and inspire new ideas.
    Final Year Projects for CSE in Node.js
    IEEE will pave a new way in knowledge-sharing and spreading ideas across the globe. Project Centers in Chennai for CSE

    Node.js Corporate Training
    JavaScript Training in Chennai

    ReplyDelete

Generate a unique N letters word sequence (by using relationship between Factoradic base system and Lexicographic Permutation Order of a String)

Lets say that you want to generate a unique 3 letters code sequence to be used as a primary key for some data recodes. Also let assume ...