如何在 Windows 上安装 mongoDB? [英] How to install mongoDB on windows?

查看:29
本文介绍了如何在 Windows 上安装 mongoDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试测试 mongoDB,看看它是否适合我.我下载了 32 位 windows 版本,但不知道从现在开始如何继续.

I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.

我通常使用 WAMP 服务在本地计算机上进行开发.我可以在 Wamp 上运行 mongoDB 吗?

I normally use the WAMP services for developing on my local computer. Can i run mongoDB on Wamp?

但是,让它在 Windows 上运行的最佳(最简单!)方法是什么?

However, what's the best (easiest!) way to make it work on windows?

谢谢!

推荐答案

它不像 WAMP.创建目录后,您需要使用命令启动 mongoDB 数据库 C:/database_mongo

It's not like WAMP. You need to start mongoDB database with a command after directory has been created C:/database_mongo

mongod --dbpath=C:/database_mongo/

然后您可以使用命令连接到 mongodb.

you can then connect to mongodb using commands.

这篇关于如何在 Windows 上安装 mongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆