根據http://www.linuxidc.com/Linux/2011-11/47460.htm 帖子設定, 在最後加第二個shard時報錯, 請各位幫幫忙:
db.runCommand( { addshard : “shard2/192.168.112.172:27018,192.168.112.173:27018,192.168.112 .174:27018″,name:”s2”,maxsize:20480} );
{
“ok” : 0,
“errmsg” : “couldn’t connect to new shard socket exception [CONNECT_ERROR] for shard2/192.1 68.112.172:27018,192.168.112.173:27018,192.168.112.174:27018”
}
感謝回答:
$ ./mongo 192.168.112.172:27018
MongoDB shell version: 3.0.6
connecting to: 192.168.112.172:27018/test
Server has startup warnings:
2015-09-01T16:14:58.380+0800 I CONTROL [initandlisten]
2015-09-01T16:14:58.380+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/ mm/transparent_hugepage/enabled is ‘always’.
2015-09-01T16:14:58.380+0800 I CONTROL [initandlisten] ** We suggest set ting it to ‘never’
2015-09-01T16:14:58.381+0800 I CONTROL [initandlisten]
2015-09-01T16:14:58.381+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/ mm/transparent_hugepage/defrag is ‘always’.
2015-09-01T16:14:58.381+0800 I CONTROL [initandlisten] ** We suggest set ting it to ‘never’
2015-09-01T16:14:58.381+0800 I CONTROL [initandlisten]