NodeJS Forever Not for

1

I have a ubuntu server, and I used the command forever restart but I forgot that I did not install a node-module, that is, when I did the command forever list it appeared stopped, then I used the command forever start server.js 2 registers in forever list with the stopped situation, well, I installed the missing node-module and used the command forever start server.js , after all, it worked, but now I made a forever restart server.js and it started the 3, How do I delete them? or unemployed? currently it looks like the 3 of them are running.

    
asked by anonymous 21.02.2017 / 21:28

3 answers

1

forever has a command that kills all active sessions at the moment.

Just run forever stopall . After that start just the right process.

Reference: link

You can end a specific process using forever stop ID . In this case it is enough to identify the process by ID or even by its index in the list.

    
22.02.2017 / 00:04
0

Use the following command to kill processes on linux with a given name:

pkill 'forever'

Then start only the process you want again.

    
21.02.2017 / 22:13
0

You can clear the logs, after giving forever stop "id" run forever cleanlogs .

It will no longer appear

    
30.11.2018 / 13:26