首页 > 解决方案 > 尝试启动 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)

标签: node.jsproduction

解决方案


推荐阅读