文章詳情頁
javascript - 求解:nodejs 環境變量NODE_NEV 產模式啟動發出警告
瀏覽:59日期: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
相關文章:
排行榜
