Mongodb Replica Set configuration - 0 views
-
Online Training at Attune University on 24 Sep 13etc/hosts (for master AND slave) 192.168.0.1 reeeshu 192.168.0.2 Attune For master AND slave user@ubuntu:~$ su - mongodb mongodb@ubuntu:~ Master and slave Node Configuration dbpath=/data/db logpath=/var/log/mongodb/mongodb.log logappend=true nojournal = true port = 27017 bind_ip = machine_ip (for eg. 100.11.11.11) fork = true replSet = myset Modify the value of bind_ip to reflect the address over which you would like to access MongoDB.