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!
某草草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 kill
just drop it