记录mongoDB配置过程

1.从官网下载的mongodb-win32-i386-2.6.8-signed.msi
2.安装到D:\MongoDB
3.在D:\MongoDB下新建2个文件夹 data和log
4.启动mongodb
mongod --dbpath=D:\MongoDB\data --logpath=D:\MongoDB\log\mongo.log --port 10001

D:\MongoDB\bin>mongod --dbpath=D:\MongoDB\data --logpath=D:\MongoDB\log\mongo.lo
g --port 10001
2015-03-19T15:24:01.906+0800
2015-03-19T15:24:01.906+0800 warning: 32-bit servers don't have journaling enabl
ed by default. Please use --journal if you want durability.
2015-03-19T15:24:01.906+0800

5.客户端连接测试
D:\MongoDB\bin>mongo 127.0.0.1:10001
MongoDB shell version: 2.6.8
connecting to: 127.0.0.1:10001/test

6.浏览器通过http://127.0.0.1:10001/连接
显示:It looks like you are trying to access MongoDB over HTTP on the native driver port.
表示连接成功
ie6没有通过,Chrom版本 38.x和UC浏览器4.x成功访问

C:\Program Files\MongoDB\Server\3.0\bin>mongorestore -d decisiondiag --drop  F:\
backup\2016_09_05\decision2016_09_05\decisiondiag


C:\Program Files\MongoDB\Server\3.0\bin>mongod --dbpath=F:\mongodb\data --logpat
h=F:\mongodb\log\mongo.log --port 27017

猜你喜欢

转载自belinda407.iteye.com/blog/2193935