文章詳情頁
javascript - 求解:nodejs 環(huán)境變量NODE_NEV 產(chǎn)模式啟動發(fā)出警告
瀏覽:101日期:2023-08-26 18:22:26
問題描述
如果用開發(fā)模式啟動程序是沒有問題的,但是切換到生產(chǎn)模式就會拋出以下錯誤:
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:內(nèi)存泄漏風險的警告,不要直接在宿主機的內(nèi)存中存放 session 等緩存數(shù)據(jù)。
標簽:
JavaScript
相關(guān)文章:
1. 關(guān)docker hub上有些鏡像的tag被標記““This image has vulnerabilities””2. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題3. io - java 文件操作,如何向指定的位置插入內(nèi)容 (不是替換內(nèi)容) ?4. dockerfile - [docker build image失敗- npm install]5. javascript - vue使用videojs+videojs-contrib-hls報錯6. javascript - webpack --hot 熱重載無效的問題7. golang - 用IDE看docker源碼時的小問題8. Python 爬蟲 遇到的問題(手淘問大家)9. nignx - docker內(nèi)nginx 80端口被占用10. mysql如何配置遠程php外網(wǎng)鏈接數(shù)據(jù)庫
排行榜

熱門標簽