項目部署到阿里云服務(wù)器ubuntu14.04時會發(fā)生一次重啟,看日志說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.我在這里看到有人遇到同樣的問題 https://github.com/Automattic...,說是mongoose的原因,我把mongoose升級到最新版本后還是報這個錯。。。這是我連mongodb的鏈接:mongodb://blog_runner:safeblog@127.0.0.1:27017/blog-appblog_runner是具有讀寫權(quán)限的。如何解決呢?
mongodb線上環(huán)境報錯Db.prototype.authenticate method
德瑪西亞99
2018-11-29 22:18:40