pm2部署在centos上,原本使用的是
pm2 start ecosystem.config.js --only prod-server --watch
会报错如下,Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials
其他接口完全ok,唯独上传图片报502错误,去除watch就ok了
暂作记录.

使用PM2在CentOS上部署项目时,特定命令行参数导致上传图片接口返回502错误,移除watch参数后问题解决。记录MongoDB认证变更及PM2配置注意事项。
372

被折叠的 条评论
为什么被折叠?



