search

Home  >  Q&A  >  body text

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

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

迷茫迷茫2755 days ago685

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:19:55

    mongod --dbpath "D:webmongodbdata"
    Change the path

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-02 09:19:55

    Yes, mongodb has very few running configurations. All running configurations can be completed directly through command line parameters or configured through configuration files.

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:19:55

    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.

    reply
    0
  • Cancelreply