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了
暂作记录.