node.js - Azure 上的错误 : listen EACCES 0. 0.0.0:80 错误

标签 node.js azure azure-web-app-service

您好,我正在尝试在 Azure 上部署我们的 node.js 应用程序(Web/移动应用程序)。但它给出了这个错误:

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

Error: listen EACCES 0.0.0.0:80

我的端口监听代码是:

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

它在 Google Cloud 平台上运行没有任何问题。

最佳答案

如果您在没有 root 权限的情况下运行应用程序,则不允许使用低于 1024 的端口,那么您可以尝试使用高于该端口的端口,或者以 root 用户身份运行应用程序。

关于node.js - Azure 上的错误 : listen EACCES 0. 0.0.0:80 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49553500/

相关文章:

azure - Azure 上的 Orchard 入门

c# - 成功部署后Az​​ure Web应用程序未更新

node.js - 用 Mongoose 填充后如何聚合

javascript - 在 Javascript 中缓存和预取过期的 promise

C# 可以工作,但在 PHP 中我无法获取信息

Powershell 导入 Azure 发布设置无效的 XML

Azure Pipelines 未使用指定的 NuGet 版本

javascript - npm 安装 : install Couldn't read dependencies

javascript - Node.js:解析 JSON 对象

Azure 通知服务 : The remote server returned an error: (401) Unauthorized. ExpiredToken : . TrackingId: