-
手电筒查看全部
-
这回可以了查看全部
-
MongoDB复制集配置文件查看全部
-
>rs.initiate(config) >rs.isMaster() >rs.status()查看全部
-
>ps -ef | grep mongo #data { imooc.0 imooc.ns journal local.0 local.1 local.ns mongod.lock } #arbiter { journal local.0 local.ns mongod.lock} >rs.status() #"stateStr" :"ARBITER"查看全部
-
数据节点{主Primary,从Secondary}{ 实体数据 *.ns *.0} 投票节点 {Arbiter}查看全部
-
>show dbs #local 0.078GB==79MB >show tables #me&stattup_log&system.indexs&system.replset local.0 64MB local.ns 16MB查看全部
-
A capped collection[封顶表] that stores an ordered history of logical writes to a MongoDB database. The oplog is the basic mechanism[机制] enabling replication in MongoDB.查看全部
-
mongod --auth #增加验证,提供安全性查看全部
-
mongod --help mongod --config path # [配置文件] mongod --port #默认端口不安全 db.runCommand("shutdownServer") #127.0.0.1 kill -2 pid kill -9 暴力查看全部
-
【数据冗余,高可用】来提高数据的可靠性和安全性 【自动容灾】故障切换查看全部
-
复制集参数配置查看全部
-
db.runCommand("shutdownServer")查看全部
-
延迟节点:<br> 要满足三个条件: priority=0 hidden=1 slaveDelay=260查看全部
-
隐藏节点设置 完后重新配置一下: rs.reconfig() 注意:生产环境慎用此命令,因为连接会闪断 rs.status() 能看到隐藏的从节点 rs.isMaster()会看不到隐藏的从节点,不会被前端程序被 发现。只需要的时候使用,仅做为数据的冗余而存在查看全部
举报
0/150
提交
取消