- 打开terminal执行
sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --dbpath /var/lib/mongodb/ --repair
sudo mongod --dbpath /var/lib/mongodb/ --journal
- 打开terminal新tab
mongo
参考:
StackOverflow
sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --dbpath /var/lib/mongodb/ --repair
sudo mongod --dbpath /var/lib/mongodb/ --journal
mongo
参考:
StackOverflow
本文标题:mongo - couldn't connect to serv
本文链接:https://www.haomeiwen.com/subject/sckbcltx.html
网友评论