時間:2024-02-09 10:40作者:下載吧人氣:19
主從復(fù)制可以用來做數(shù)據(jù)庫的備份,故障恢復(fù),讀寫分離。
本實驗使用Mongodb 3.2版本,我們先查看一下mongod的幫助
[root@localhost mongodb]# mongod --help .....省略 Master/slave options (old; use replica sets instead): --master master mode --slave slave mode --source arg when slave: specify master as <server:port> --only arg when slave: specify a single database to replicate --slavedelay arg specify delay (in seconds) to be used when applying master ops to slave --autoresync automatically resync if slave data is stale .....省略
網(wǎng)友評論