search

Home  >  Q&A  >  body text

node.js - What is the reason why node fails to start the local service but the browser can open localhost?

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

阿神阿神2741 days ago666

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-05-24 11:40:31

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-24 11:40:31

    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

    reply
    0
  • Cancelreply