Socket.io instance will not be stopped after I run pm2 stop command
My web server uses socket.io. After I run pm2 stop command, the pm2 process is still occupying the port I used. I have to kill the pm2 process, which also stops other scripts...
Are you running node 0.10.x ?
https://github.com/Unitech/pm2/issues/74
https://github.com/Unitech/pm2#a21
Yes, the version is v0.10.12
And the port can be freed if I use node-forever.
I use the latest version of pm2 and run the app with -x option. It works, but it seems pm2 list and stop command are not functionable. The error is: method "getMonitorData" is not existed.
do a pm2 kill (you still have the old pm2 version in background) or kill it via cli. after tell if everything is okay with the fork
Yes, everything works now!