B
B
bumbay2014-08-26 21:46:43
SSH
bumbay, 2014-08-26 21:46:43

Trouble with Node.JS pm2 module?

What am I doing.
I restart the server and start working with the module.

# pm2 list
┌──────────┬────┬──────┬─────┬────────┬───────────┬────────┬────────┬──────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
└──────────┴────┴──────┴─────┴────────┴───────────┴────────┴────────┴──────────┘
 Use `pm2 desc[ribe] <id>` to get more details

All is well - further.
# pm2 startup centos
[PM2] Generating system init script in /etc/init.d/pm2-init.sh
[PM2] Making script booting at startup...
/var/lock/subsys/pm2-init.sh lockfile has been added
[PM2] -centos- Using the command su -c "chmod +x /etc/init.d/pm2-init.sh; chkconfig --add pm2-init.sh"

[PM2] Done.

All is well - further.
# pm2 start /node/processes.json
And that is all. pm2 is no longer responding. (Ctrl+Z) and try other commands.
All but the main pm2 don't work.
Reboot helps.
What could be the problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elena, 2014-08-27
@Nidora

have you tried these commands? :

$ pm2 start app.js --name "my-api"
$ pm2 start web.js --name "web-interface"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question