为什么需要:
因为在mac上直接使用社区版,进行备份数据导入时,会报错:
MongoError: Transaction numbers are only allowed on a replica set member or mongos
run-rs可以零配置启动mongodb
1、npm install run-rs -g
2、run-rs -v 4.0.0 --shell
本文介绍在Mac上使用MongoDB社区版时遇到的数据导入错误:Transaction numbers are only allowed on a replicaset member or mongos。提供了一个解决方案,通过使用run-rs工具零配置启动MongoDB。
为什么需要:
因为在mac上直接使用社区版,进行备份数据导入时,会报错:
MongoError: Transaction numbers are only allowed on a replica set member or mongos
run-rs可以零配置启动mongodb
1、npm install run-rs -g
2、run-rs -v 4.0.0 --shell

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