我需要让我的本地 node.js webapp 监听80端口。现在,如果在端口 80 上运行我的应用程序,我会收到此错误
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1020:19)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Object.<anonymous> (\scripts\server.js:23:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
如果在 4321 端口上运行应用程序,则不会重现此错误,因此取决于端口。
我应该怎么做才能在 Windows 7 的端口 80 上运行我的应用程序