文章詳情頁
javascript - 求解:nodejs 環境變量NODE_NEV 產模式啟動發出警告
瀏覽:171日期: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-compose中volumes的問題2. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””3. boot2docker無法啟動4. nignx - docker內nginx 80端口被占用5. docker安裝后出現Cannot connect to the Docker daemon.6. java - SSH框架中寫分頁時service層中不能注入分頁類7. dockerfile - 為什么docker容器啟動不了?8. node.js - antdesign怎么集合react-redux對input控件進行初始化賦值9. docker容器呢SSH為什么連不通呢?10. 關于docker下的nginx壓力測試
排行榜

網公網安備