-
[root@ip-10-1-2-183 etc]# more shard1.conf
-
logpath=/usr/local/mongodb/logs/mongo_shard1.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27019
-
#vvvvv = true
-
#diaglog = 3
-
dbpath=/usr/local/mongodb/shard1
-
pidfilepath=/usr/local/mongodb/logs/mongo_shard1.pid
-
bind_ip=10.1.2.183
-
replSet=shard1
-
shardsvr=true
/usr/local/mongodb/bin/mongod -f shard1.conf