>./mongo --port=30000
MongoDB shell version: 1.8.2
connecting to: 127.0.0.1:30000/test
>use admin
>cfg={
"_id" : "myset",
"version" : 1,
"members" : [
{
"_id" : 0,
"host" : "10.16.46.113:30000"
},
{
"_id" : 1,
"host" : "10.16.46.113:40000"
}
]}
>rs.initiate(cfg)