文章詳情頁
javascript - 求解:nodejs 環境變量NODE_NEV 產模式啟動發出警告
瀏覽:128日期: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-machine添加一個已有的docker主機問題2. angular.js - angularjs的自定義過濾器如何給文字加顏色?3. angular.js使用$resource服務把數據存入mongodb的問題。4. 關于docker下的nginx壓力測試5. 為什么我ping不通我的docker容器呢???6. docker安裝后出現Cannot connect to the Docker daemon.7. nignx - docker內nginx 80端口被占用8. docker - 如何修改運行中容器的配置9. Docker for Mac 創建的dnsmasq容器連不上/不工作的問題10. docker鏡像push報錯
排行榜
