node.js - 尝试启动 prod 环境时出现 NODEJS 错误
问题描述
希望有人可以帮助我,我很新处理产品环境,我试图在 aws ec2 linux 实例上部署我的 nodejs 后端。使用 pm2 运行环境,但在使用pm2 start Ecosystem.config.js --env production命令后,我记录了输出,我得到了以下日志:
at process.emit (events.js:327:22)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Error: bind EACCES null:80
at listenOnMasterHandle (net.js:1380:18)
at rr (internal/cluster/child.js:132:12)
at Worker.<anonymous> (internal/cluster/child.js:99:7)
at process.onInternalMessage (internal/cluster/utils.js:47:8)
at process.emit (events.js:327:22)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
解决方案
推荐阅读
- r - 计算测试集的 AUC(R 中的 keras 模型)
- oracle - 我可以在 PL/SQL 中返回一个函数吗?
- c++ - CMake 与 Eigen 的链接错误“CMake 无法确定目标的链接器语言”
- python - 如何使用 CNN 预测孔的中心坐标
- c# - 如何为 NI 示例等 VBA 创建静态函数 TLB 文件?
- javascript - 无法使用 Selenium 和 java/javascript 在字段中输入数据
- nativescript - 如何在使用 nativescript-Angular 键入和更改 Android 设备的光标指针颜色时删除输入文本中的下划线
- oracle - 我想调用这个过程并传递在游标中获取的变量
- node.js - 复制“Concourse CI”节点调用/调试 process.stdin Net.socket
- c# - DbContext.AttachRange() 在这种情况下如何工作