search

Home  >  Q&A  >  body text

node.js - node port disappears but process still running

  1. Node handles requests by starting js files, but in the past two days, I found that the 3000 port started by node disappeared, but the process still exists, and the process has not been restarted, and there will be no other applications. Port 3000 will be occupied, please ask the experts for solution ideas! Thank you!

伊谢尔伦伊谢尔伦2794 days ago660

reply all(2)I'll reply

  • 某草草

    某草草2017-05-16 13:33:12

    Sometimes the shell exits but forgets to close the node process. Sometimes the process corresponding to the node service will always exist. I've often encountered this problem recently.

    lsof -i :3000

    Get the corresponding process id and killjust drop it

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 13:33:12

    Open the task manager, find node.js, and end the process;

    reply
    0
  • Cancelreply