Home  >  Q&A  >  body text

mac 安装 mongodb

mac 系统里,用 brew 和 npm 安装 mongodb 有什么不同吗?用哪个方式安装后期使用和维护会比较方便?

高洛峰高洛峰2754 days ago616

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-27 09:04:13

    npm is based on node, brew is based on mac.
    But npm installs mongo middleware, not the database. They are not the same thing.

    What I use now is brew installation, and I find it very convenient to manage.
    I installed it based on this article. I hope it will be helpful to you

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-04-27 09:04:13

    With this software, you can directly download the gz compressed package, then decompress it and configure the path. This solution is probably the simplest. My mac mongodb3 is decompressed directly.

    reply
    0
  • Cancelreply