体验服CAS注册一个账号diegege
体验服CAS找到账号信息
%ps xuaww | grep mong |grep master
root        3053  0.0  0.3 4882476 13224   0- S    26Jul11 303:45.04 mongod --master --dbpath /data/db/mongodb_casv2 --port 27131
root        3038  0.0  0.3 6570284 13656   3- S    26Jul11 305:04.85 mongod --master --dbpath /data/db/mongodb_gds1_sj --port 27161
%mongo 127.0.0.1:27131
> show dbs
> use ice_cas_v2
> show tables;
> db.cas_user_flat.findOne({username:'diegege'})
{
        "_id" : ObjectId("4f5584a8b5e99c4432060000"),
        "domainid" : 0,
        "userid" : 655538,
        "username" : "diegege",
        "thirdid" : null,
        "email" : "diegege@diegege.cn",
        "realname" : "鍛滃憸",
        "idcard" : "5120281989070203023",
        "uk_username" : "diegege"
}
激活
mongodb_gds1_sj
%mongo 127.0.0.1:27161
MongoDB shell version: 1.8.2
connecting to: 127.0.0.1:27161/test
> show dbs
> show tables;
> db.blacklist.findOne()
> db.blacklist.insert({"userid":655538,"areaid":"*","ctime":1300754656})
> db.blacklist.find({"userid":655538})
{ "_id" : ObjectId("4f55893d00876b16db64f397"), "userid" : 655538, "areaid" : "*", "ctime" : 1300754656 }
插错了,插到黑名单去了。
> db.blacklist.remove({"userid":655538})
> db.blacklist.find({"userid":655538})
>db.whitelist.insert({"userid":655538,"areaid":"*","ctime":1300754656})
后检查程序没有使用体验服的mongodb_casv2而是使用正式服mongo的slave(27142端口)
PassPort注册账号ipseek
正式服mongo的slave查询
%mongo 127.0.0.1:27142
MongoDB shell version: 1.8.2
connecting to: 127.0.0.1:27142/test
> show dbs;
accountcache    3.9521484375GB
> use accountcache;
> show tables;
account
> db.account.findOne({'username':'ipseek'})
> db.account.find({"username":"ipseek"})
注册后数据同步需要一会,
找到后再按前面的激活步骤激活。