Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodejs: forever not responding

So I know, it was not the most smartass idea, but I updated nodejs to version 0.10 with "n" while the server was still running with forever. Now when I try typing in

$ forever list

or

$ forever stopall

or

$ forever restartall

it simply does nothing. Anyways -

$ forever --help

still shows the help menu, but all actions won't work. And my nodejs Server is still responding!

Is there any method I can kill forever with fire?

like image 728
tn4foxxah Avatar asked Mar 13 '13 20:03

tn4foxxah


1 Answers

You can use

sudo killall node  

OR

sudo forever stopall

If that too doesn't work simply use

sudo kill -9 $(ps aux | grep 'node' | awk '{print $2}') 

Hope this works

like image 153
Abdul Hamid Avatar answered Oct 09 '22 17:10

Abdul Hamid