`
lihao312
  • 浏览: 479591 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

window下安装mongodb服务

阅读更多
1.首先在bin下创建mongo.config文件
##store data here
dbpath=F:\mongodb-win32-x86_64-2.4.5\mongodb-win32-x86_64-2.4.5\data
 
##all output go here
logpath=F:\mongodb-win32-x86_64-2.4.5\mongodb-win32-x86_64-2.4.5\log\mongo.log
 
##log read and write operations
diaglog=3




2.用install安装服务
mongod --config D:\mongodb\mongo.config --install


3.安装成功后可以用命令行启动服务和关闭服务
net start MongoDB

net stop MongoDB


4.移除服务
mongod --remove
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics