Closed chinakids closed 4 years ago
初始化部署就出问题了...不知道哪里提前res.end了貌似.....懒得调...express天生让人累
1.0.9初次部署始终会触发db/siteFunc.js 486/487行的res.end ... 也要先注释掉 才能初次设置。不然后面没办法setHeader导致错误...........po主检查一下吧
找到问题了
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
redis错误没有抛出错误,直接导致renderToTargetPageByType()方法执行出了问题..
解决(此问题在内存大于16G 的时候比较常见....):
[零时]
redis-cli
config set stop-writes-on-bgsave-error no
[最佳]
修改/etc/sysctl.conf
增加:
vm.overcommit_memory = 1
mac的同学注意下 redis 的 db 写入权限
老版本的问题解决了就关了吧