在mac上,Mongodb服务启动:
命令:
mongod -f /usr/local/mongodb/mongod.conf
mongod.conf中设置内容:
dbpath=/usr/local/mongodb/data/db
logpath=/usr/local/mongodb/data/log/mongodb.log
pidfilepath=/usr/local/mongodb/log/master.pid
directoryperdb=true
logappend=true
bind_ip=127.0.0.1
port=27017
fork=true
网友评论