Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't stop web server when use pm2 stop #42

Closed
hanksudo opened this issue Jul 1, 2013 · 4 comments
Closed

can't stop web server when use pm2 stop #42

hanksudo opened this issue Jul 1, 2013 · 4 comments

Comments

@hanksudo
Copy link

hanksudo commented Jul 1, 2013

I use pm2 to start my express web server. test progress like below:

$ mkdir test && cd test && express && npm i
$ pm2 start app.js

Then I open website on http://localhost:3000, after that I try to stop it: $ pm2 stop 0
But the port still be occupied. I always must do `$ pm2 kill 0' to really release the port.

Is that a bug or I use it by a wrong way?

@BretFisher
Copy link

👍 same question

@rlidwka
Copy link
Collaborator

rlidwka commented Jul 3, 2013

Try node 0.11.x branch. I think it's a core issue and they've fixed it in master.

// same issue as #22

@BretFisher
Copy link

I wish I could try that, but have to stick on 8.x for now. Could there be a workaround for 8.x?

@Unitech Unitech mentioned this issue Jul 8, 2013
5 tasks
@Unitech
Copy link
Owner

Unitech commented Jul 29, 2013

Can't fix it (NodeJS bug in the cluster module on 0.10.x)
Use 0.11.x if you want to use the cluster mode, else start your app in fork mode :

$ pm2 start app.js -x

@Unitech Unitech closed this as completed Jul 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants