node-nodejs - 用npm安装mongodb然后就可以启动mongodb服务吗

浏览:42日期:2023-06-29

问题描述

用npm安装mongodb然后就可以启动mongodb服务吗

问题解答

回答1:

mongod --dbpath 'D:webmongodbdata'换哈路径哈

回答2:

是的,mongodb的运行配置非常少,可以直接通过命令行参数完成所有运行配置,也可以通过配置文件进行配置。

回答3:

Nope, You should install Mongodb.msi from official website first. Then Install it. so you can use mongo no matter from shell or node.js.

Install Mongodb via NPM just install the driver that Mongo Need, so you can use Node.js to control it.

This is the mongodb guide for beginner.http://mongodb.github.io/node...

I hope this will helps you.

相关文章: