MongoDB是一种面向文档的数据库,而非传统的关系型数据库,能够大多数的平台如运行。 linux
当前最新版本为:2.4 下载地址:http://www.mongodb.org/downloads mongodb
安装步骤(windows): 数据库
C:\mongodb\bin\mongod.exe --dbpath c:\mongodb\data\db若是出现错误码,请以管理员身份运行cmd.
c:\mongodb\bin>mongod
This will start the main MongoDB database process. The waiting for connections message in the console output indicates that the mongod.exe process is running successfully.
db.test.save({a:1})
db.test.find()
c:\mongodb\bin>
C:mongodb\bin>mongod --dbpath "C:\mongodb\data\db" --logpath "C:\mongodb\data\log\MongoDB.log" --install --serviceName "MongoDB"
NET START MongoDB (开启服务) ubuntu
NET stop MongoDB (关闭服务) windows