当前位置:网站首页>Node stepping on the pit 80 port is occupied

Node stepping on the pit 80 port is occupied

2022-08-11 06:34:00 Sherry Shen

An error occurred

insert image description here

Workaround:

1. Change the port number

The easiest way is definitely to modify the port number directly in the program.I modified to 81, 89, etc., the program can run.

2. Find the occupancy of the port number

Learn from the big brother's practicePort 80 in node.js is occupied
There is also the practice of the bossnode.js error solution throw er; // Unhandled 'error' event
Note
1. Our port number here is 80, soUse netstat -aon|findstr "80"

2. And tasklist|findstr "80"
3. The shortcut key to open the task manager is Ctrl+Shift+Esc
4. The task explorer does not haveIf the Pid value is displayed, set it in the header and it will be displayed.

原网站

版权声明
本文为[Sherry Shen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110515295290.html