- Open putty
- Login to ssh with username and password
- Go to the folder where node file exist.
- Execute following command
- Now you can close the putty
nohup node server.js &
then execute following command
rm nohup.out
Question: How to check nodeJS running?
top
Just look for "node", If its shown means running.
Question: How to stop/kill the node?
Get the "process id" from terminal and kill the same.
kill PROCESS_ID
OR
killall node
How to search the process using command?
ps -fC node