打开与备份节点的终端
rs1:SECONDARY> show dbs;
local 1.031GB
tt 0.031GB
rs1:SECONDARY> use tt
switched to db tt
rs1:SECONDARY> show collections;
system.indexes
user
多了个数据库 ,还多了条文档
rs1:SECONDARY> db.user.find()
{ "_id" : ObjectId("55a5d1390d49c20962937b52"), "name" : "mongodb is greate!!!!" }
CentOS编译安装MongoDB
CentOS 编译安装 MongoDB与mongoDB的php扩展
CentOS 6 使用 yum 安装MongoDB及服务器端配置