跳到主要内容
CNode

how to fix waring 'MemoryStore is not designed for a production environment'?

社区
Ffreizl发布于 14 年前最后回复 14 年前
260850

这个问题有办法解决么?

$ NODE_ENV=production node app.js

Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak 
memory, and obviously only work within a single process.
查看回复

回复 (2)

Y
yeahcheung#114 年前

使用connect-mongo或connect-redis代替MemoryStore 存储session

参与回复

登录后即可参与回复。登录