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