启动mongodb 出现errmsg" : "This node was not started with the replSet option"

解决方法:
1、先启动sudo service mongod start
2、关闭sudo service mongod stop
查看状态sudo service mongod status
显示dead
3、再开一台终端执行
mongod --port=27001 --dbpath=./data/db --replSet=rs0
2、在另一台启动
mongo --port 27001

猜你喜欢

转载自blog.csdn.net/yaoqiuquan/article/details/83861737
今日推荐