MongoDb

MongoDb
mongoDB 不支持IPv6
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
启动mongoDB
./mongod --dbpath /usr/local/mongodb/data
设置mongoDB后台运行
./mongod --fork --dbpath /usr/local/mongodb/data --logpath /usr/local/mongodb/log/log --logappend
设置MongoDB开机启动
vi  /etc/rc.local
/usr/local/mongodb/bin/mongod  --fork --dbpath /usr/local/mongodb/data --logpath /usr/local/mongodb/log/log --logappend

posted on 2018-10-12 10:27  阿释密达  阅读(84)  评论(0编辑  收藏  举报

导航