启动实例:
mongod -f /usr/local/mongodb/conf/28001.conf
mongod -f /usr/local/mongodb/conf/mongod_28001.conf cd /usr/local/mongodb mkdir -p conf data/28001 log cd conf cat mongod_28001.confport=28001bind_ip=127.0.0.1 log_path=/usr/local/mongodb/log/mongod_28001.log dbpath=/usr/local/mongodb/data/28001 logappend=truepidfilepath=/usr/local/mongodb/data/28001/28001.pid fork=true oplogSize=1024 #MB journal=true replSet=zerobug
*.ns *.0 Only available for the MMAPv1 storage engine.
现在已经不推荐用了,好比MyIsam和Innodb. 现在都用
storageEngine=wiredTiger