简体   繁体   English

错误:在Azure上监听EACCES 0.0.0.0:80错误

[英]Error: listen EACCES 0.0.0.0:80 Error On Azure

Hi I'm trying to deploy our node.js app on Azure (Web/Mobile App). 嗨,我正在尝试在Azure(Web / Mobile App)上部署我们的node.js应用程序。 But it is giving that error: 但这给了这个错误:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 0.0.0.0:80

My port listen code is: 我的端口监听代码是:

httpsServer.listen(process.env.PORT || 80);

It was working on Google Cloud platform without any problem. 它可以在Google Cloud平台上正常工作。

如果您正在运行的应用程序没有root特权,那么您将不允许使用低于1024的端口,如何尝试使用高于1024的端口或以root用户身份运行应用程序。

显然,您不允许在低于1024的端口上运行。因此,您不能仅指定端口80。有关更多详细信息,请参阅解决问题的Stack Overflow Post

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM