mac 系统里,用 brew 和 npm 安装 mongodb 有什么不同吗?用哪个方式安装后期使用和维护会比较方便?
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
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
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.
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
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.