You must specify the run time configuration on each system in a configuration file stored in /etc/mongodb.conf or a related location. Do not specify the set’s configuration in the mongo shell.
Use the following configuration for each of your MongoDB instances. You should set values that are appropriate for your systems, as needed:
port = 27017
bind_ip = 10.8.0.10
dbpath = /srv/mongodb/
logpath=/home/mongoRepSet/logs/r0.log
logappend = true
fork = true
replSet = rs0
mongo repset配置 副本集
猜你喜欢
转载自cooler1217.iteye.com/blog/2007315
今日推荐
周排行