我已经试过上述合适而恰当的mongod的只是不允许mongos建立连接:
mongos> show tables
2016-10-17T13:24:00.954+0100 E QUERY [thread1] Error: error: {
"$err" : "could not initialize sharding on connection mtk-uat-rs-eu0/mongod.mtkdb413.motortrak.com:28100,mongod.mtkdb413.motortrak.com:28101 :: caused by :: v3.0 mongod is incompatible with v2.6 mongos, a v2.6 mongos may be running in the v3.0 cluster at 192.168.151.28",
"code" : 15907,
"shard" : "mtk-uat-rs-eu0"
} :
[email protected]/mongo/shell/utils.js:25:13
[email protected]/mongo/shell/query.js:297:1
[email protected]/mongo/shell/db.js:743:27
[email protected]/mongo/shell/db.js:789:16
[email protected]/mongo/shell/db.js:796:16
[email protected]/mongo/shell/utils.js:753:9
[email protected]/mongo/shell/utils.js:650:15
@(shellhelp2):1:1
mongos> show tables
2016-10-17T14:20:24.223+0100 E QUERY [thread1] Error: error: {
"$err" : "could not initialize sharding on connection mtk-uat-rs-eu0/mongod.mtkdb413.motortrak.com:28100,mongod.mtkdb413.motortrak.com:28101 :: caused by :: v3.0 mongod is incompatible with v2.6 mongos, a v2.6 mongos may be running in the v3.0 cluster at 192.168.151.28",
"code" : 15907,
"shard" : "mtk-uat-rs-eu0"
} :
[email protected]/mongo/shell/utils.js:25:13
[email protected]/mongo/shell/query.js:297:1
[email protected]/mongo/shell/db.js:743:27
[email protected]/mongo/shell/db.js:789:16
[email protected]/mongo/shell/db.js:796:16
[email protected]/mongo/shell/utils.js:753:9
[email protected]/mongo/shell/utils.js:650:15
@(shellhelp2):1:1