1、./mongod: error while loading shared libraries: /usr/lib64/libstdc++.so.6: ELF file OS ABI invalid
二进制级别不兼容
解决办法:从正常的机器上拷贝libstdc++.so.6 替换相应的文件即可
2、启动mongos 不成功,查看日志出现:
config servers localhost:27017 and localhost:12000 differ
config servers localhost:27017 and localhost:12000 differ
config servers localhost:27017 and localhost:12000 differ
config servers localhost:27017 and localhost:12000 differ
config servers not in sync! config servers localhost:27017 and localhost:12000 differ
chunks: “d41d8cd98f00b204e9800998ecf8427e” EOO
databases: “0195c739c938fdafd9632279694ea64e” EOO
Wed Oct 09 15:36:42 [mongosMain] configServer connection startup check failed
解决办法:
说明你第一次实验参与集群的mongod服务与当前参与集群的mongod服务数量不一致。解决方法是把第一次参与集群的mongod 数据目录下所有的config.0,config.1,config.ns 删除。重新启动mongos即可。