Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run node js remotely

I am running node using putty. but it doesn't work when putty session expire. How can I start node js permanently, should not be terminated if putty session end.

like image 578
Mark Avatar asked Apr 14 '11 11:04

Mark


People also ask

Can I run node js on Chrome?

Installing Nodejs is an important part of getting your Chromebook up and running for Web Development. With the addition of Linux apps and the terminal developers can now install Nodejs and gain access to NPM.


1 Answers

I just solved that issue yesterday using Forever > http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever

It's awesome.

  1. For Installing: npm install Forver

  2. For running: forever start yourServer.js

  3. For checking if its running: forever list

cool eh?

like image 117
neebz Avatar answered Sep 20 '22 03:09

neebz