文章详情页
javascript - 求解:nodejs 环境变量NODE_NEV 产模式启动发出警告
浏览:172日期: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. docker安装后出现Cannot connect to the Docker daemon.2. docker-compose中volumes的问题3. java - SSH框架中写分页时service层中不能注入分页类4. boot2docker无法启动5. javascript - vue生成一维码?求助!!!!!急6. nignx - docker内nginx 80端口被占用7. javascript - mock.js可以存储数据吗8. docker网络端口映射,没有方便点的操作方法么?9. javascript - js如何获取app保存的TOKEN?10. 老师,按tab键不起作用怎么回事
排行榜

网公网安备