MongoDB之旅:MongDB安装和使用(后台运行)

初识MongDB

随时都要保持求知欲!

一、什么是MongDB

MongDB的官网
什么是MongoDB?
MongoDB是一个文档数据库,具有您想要的查询和索引所需的可扩展性和灵活性。

  • MongoDB 将数据存储在灵活的,类似JSON的文档中,这意味着字段可能因文档而异,数据结构可随时间变化

  • 文档模型映射到应用程序代码中的对象,使数据易于使用

  • 即席查询,索引和实时聚合提供了访问和分析数据的强大方法

  • MongoDB是一个分布式数据库,它的核心是高可用性,横向扩展和地理分布,并且易于使用

  • MongoDB是免费且开源的,在GNU Affero General Public License下发布

二、MongoDB的架构

MongoDB架构官方文档
讲的非常好,有兴趣的同学可以自行前往多了解一下。

三、安装MongoDB

官方不同操作系统安装网址
在上面的网址中,你可以根据你的系统的不同选择不同的方式安装。

四、Mac安装MongoDB

下面以Mac系统安装为例:
Mac系统安装教程
使用Homebrew安装MongoDB。
Homebrew installs binary packages based on published “formulae.” This section describes how to update brew to the latest packages and install MongoDB Community Edition. Homebrew requires some initial setup and configuration, which is beyond the scope of this document.

1.升级Homebrew’s

Update Homebrew’s package database.
In a system shell, issue the following command:

brew update

2.安装MongoDB

You can install MongoDB via brew with several different options. Use one of the following operations:

brew install mongodb

五、运行MongoDB

1.创建MongoDB的数据库文件夹

Before you start MongoDB for the first time, create the directory to which the mongod process will write data. By de

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值