node.js - What is the reason why node fails to start the local service but the browser can open localhost?
阿神
阿神 2017-05-24 11:38:31
0
2
663

My node has reported an error when starting the service, but

But the localhost port is already open

The code should be correct, and it also displays normally in sublime's log

The task manager also shows that the service is enabled

This is win10 system

node version is 7.0.0

阿神
阿神

闭关修行中......

reply all(2)
世界只因有你

It is recommended that you catch up on your English.

It has been written very clearly that the restart failed. Why it failed? Because port 9000 has been bound and cannot be bound again. So you can continue to access localhost because the nodejs process is always started.

Ty80

Have other cmd windows been opened and server.js has been run? This error indicates that you have other programs listening to port 9000, indicating that you have already started it, so this is the server.js you started before

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template