文章详情页
javascript - 求解:nodejs 环境变量NODE_NEV 产模式启动发出警告
浏览:35日期:2023-08-26 18:22:26
问题描述
如果用开发模式启动程序是没有问题的,但是切换到生产模式就会抛出以下错误:
Warning:connect.session() MemoryStore is not designed for a production environment, as it will leakmemory, and will not scale past a single process.server connect,the port:3030
问题解答
回答1:内存泄漏风险的警告,不要直接在宿主机的内存中存放 session 等缓存数据。
标签:
JavaScript
相关文章:
1. nginx中rewrite和redirect有什么区别呢?2. 网页爬虫 - Python:爬虫的中文编码问题?3. mysql - 索引过滤性不好是由什么原因引起的,应该怎么解决4. javascript - vue生成一维码?求助!!!!!急5. javascript - H5页面怎么查看console信息?6. javascript - 修改表单多选项时和后台同事配合的问题。7. tornado - python使用yield是否能保证协程的顺序性?8. node.js - 用node开启的UDP端口,远程无法访问9. angular.js - items.query is not a function这是怎么回事10. angular.js - angularjs 怎么封装 upload 上传
排行榜
