> This page location: /docs.md > /docs/management.md > /docs/manual/installation.md > /docs/manual/administration/install-community.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

<!--
Tab options on this page. Append to the .md URL to filter:
  ?tabs=<id,...>   select specific tabs (e.g. ?tabs=nodejs,shell)
  ?allTabs=true    include every tab
  (no param)       default: one tab per tabset

Available tabs:
  other tabs: intel, apple
-->

# Install MongoDB Community on macOS

Select your installation method to view instructions for MongoDB Community Edition.

**Note:**

By default, MongoDB Community Edition does not include MongoDB Search. To use MongoDB Search with MongoDB Community, you must install MongoDB Search with [Docker](https://www.mongodb.com/docs/search/self-managed/current/installation/docker.md#std-label-mongot-deployment-using-docker) or [Linux](https://www.mongodb.com/docs/search/self-managed/current/installation/linux.md#std-label-mongot-deployment-on-linux) separately.

## Install MongoDB Community Edition on macOS

### Overview

Use this tutorial to install MongoDB 9.0 Community Edition on macOS using the third-party [Homebrew](https://brew.sh) package manager.

Starting with MongoDB 4.4.1, installing MongoDB through Homebrew also installs the [MongoDB Database Tools](https://www.mongodb.com/docs/database-tools/). See [Using the MongoDB Database Tools](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-brew-installs-dbtools) for more information.

#### MongoDB Version

This tutorial installs MongoDB 9.0 Community Edition. To install a different version of MongoDB Community, use the version drop-down menu in the sidebar and select the documentation for that version.

### Considerations

#### Platform Support

MongoDB 9.0 Community Edition supports macOS 15 or later, and requires a Haswell or newer CPU architecture.

For more information, see [Platform Support.](https://www.mongodb.com/docs/manual/administration/production-notes.md#std-label-prod-notes-supported-platforms)

#### Production Notes

Before deploying MongoDB in a production environment, see the [Production Notes for Self-Managed Deployments](https://www.mongodb.com/docs/manual/administration/production-notes.md) document for performance considerations and configuration recommendations.

### Install MongoDB Community Edition

#### Prerequisites

Ensure your system meets each of the following prerequisites. You only need to perform each prerequisite step once on your system. If you have already performed the prerequisite steps as part of an earlier MongoDB installation using Homebrew, you can skip to the [installation procedure.](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-install)

##### Install Xcode Command-Line Tools

Homebrew requires the Xcode command-line tools from Apple's Xcode.

- Install the Xcode command-line tools by running the following command in your macOS Terminal:

  ```bash
  xcode-select --install
  ```

##### Install Homebrew

macOS does not include the Homebrew `brew` package by default.

- Install `brew` using the official [Homebrew installation instructions](https://brew.sh/#install).

#### Installing MongoDB 9.0 Community Edition

Follow these steps to install MongoDB Community Edition using Homebrew's `brew` package manager. Be sure that you have followed the [installation prerequisites](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-osx-prereq) above before proceeding.

1. Tap the [MongoDB Homebrew Tap](https://github.com/mongodb/homebrew-brew) to download the official Homebrew formula for MongoDB and the Database Tools, by running the following command in your macOS Terminal:

   ```bash
   brew tap mongodb/brew
   ```

   Then, mark the tap as a trusted source:

   ```bash
   brew trust mongodb/brew
   ```

   If you have already done this for a previous installation of MongoDB, you can skip this step.

2. To update Homebrew and all existing formulae:

   ```bash
   brew update
   ```

3. To install MongoDB, run the following command in your macOS Terminal application:

   ```bash
   brew install mongodb-community@9.0
   ```

**Tip:**

Alternatively, you can specify a previous version of MongoDB if desired. You can also maintain multiple versions of MongoDB side by side in this manner.

**Tip:**

If you have previously installed an older version of the formula, you may encounter a ChecksumMismatchError. To resolve, see [Troubleshooting ChecksumMismatchError.](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-troubleshooting-checksumerror)

The installation includes the following binaries:

- The [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) server

- The [`mongos`](https://www.mongodb.com/docs/manual/reference/program/mongos.md#mongodb-binary-bin.mongos) sharded cluster query router

- The MongoDB Shell, [`mongosh`](https://www.mongodb.com/docs/mongodb-shell.md#mongodb-binary-bin.mongosh)

In addition, the installation creates the following files and directories at the location specified below, depending on your Apple hardware:

|  | Intel Processor | Apple Silicon Processor |
| --- | --- | --- |
| [configuration file](https://www.mongodb.com/docs/manual/reference/configuration-options.md) | `/usr/local/etc/mongod.conf` | `/opt/homebrew/etc/mongod.conf` |
| [`log directory`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-systemLog.path) | `/usr/local/var/log/mongodb` | `/opt/homebrew/var/log/mongodb` |
| [`data directory`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-storage.dbPath) | `/usr/local/var/mongodb` | `/opt/homebrew/var/mongodb` |

See [Apple's documentation](https://support.apple.com/en-us/HT211814) for the current list of Apple hardware using the Apple Silicon processor. You can also run the following command to check where `brew` has installed these files and directories:

```bash
brew --prefix
```

Starting with MongoDB 4.4.1, the installation also includes the [MongoDB Database Tools](https://www.mongodb.com/docs/database-tools/). See [Using the MongoDB Database Tools](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-brew-installs-dbtools) for more information.

### Run MongoDB Community Edition

Follow these steps to run MongoDB Community Edition. These instructions assume that you are using the default settings.

You can run MongoDB as a macOS service using `brew`, or you can run MongoDB manually as a background process.

**Note:**

For macOS systems that have installed MongoDB using the Homebrew installation method, the open files limit might not be automatically set when starting MongoDB through `brew services`. You might need to manually configure the `ulimit` values.

See [Ulimit Settings](https://www.mongodb.com/docs/manual/reference/ulimit.md#std-label-ulimit-settings) for more information.

- To run MongoDB (i.e. the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process) **as a
  macOS service**, run:

  ```bash
  brew services start mongodb-community@9.0
  ```

  To stop a [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) running as a macOS service, use the following command as needed:

  ```bash
  brew services stop mongodb-community@9.0
  ```

- To run [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) **manually as a background process** using a config file:

  - If your deployment does not use [TLS connections](https://www.mongodb.com/docs/manual/tutorial/configure-ssl.md#std-label-configure-mongod-mongos-for-tls-ssl), use the `--fork` option:

    - For macOS running on Intel processors, run:

      ```bash
      mongod --config /usr/local/etc/mongod.conf --fork
      ```

    - For macOS running on [Apple Silicon processors](https://support.apple.com/en-us/HT211814), run:

      ```bash
      mongod --config /opt/homebrew/etc/mongod.conf --fork
      ```

    - If your deployment uses [TLS connections](https://www.mongodb.com/docs/manual/tutorial/configure-ssl.md#std-label-configure-mongod-mongos-for-tls-ssl), use [GNU Screen](https://www.gnu.org/software/screen/).

      - For macOS running on Intel processors:

        1. Start your screen.

           ```bash
           screen -S <name-of-screen>
           ```

        2. Start `mongod`.

           ```bash
           mongod --config /usr/local/etc/mongod.conf
           ```

        3. Detach from screen.

           Detach from your screen by typing `Ctrl+a`, then clicking `d`.

        4. View all active screens.

           ```bash
           screen -ls
           ```

      - For macOS running on [Apple Silicon processors:](https://support.apple.com/en-us/HT211814)

        1. Start your screen.

           ```bash
           screen -S <name-of-screen>
           ```

        2. Start `mongod`.

           ```bash
           mongod --config /opt/homebrew/etc/mongod.conf
           ```

        3. Detach from screen.

           Detach from your screen by typing `Ctrl+a`, then clicking `d`.

        4. View all active screens.

           ```bash
           screen -ls
           ```

- To run `mongod` **manually as a background process** specifying [`--dbpath`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--dbpath) and [`--logpath`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--logpath) on the command line, run:

  ```bash
  mongod --dbpath /path/to/dbdir --logpath /path/to/mongodb.log --fork
  ```

  To stop a [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) running as a background process, connect to the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) using [mongosh](https://www.mongodb.com/docs/mongodb-shell/), and issue the [`shutdown`](https://www.mongodb.com/docs/manual/reference/command/shutdown.md#mongodb-dbcommand-dbcmd.shutdown) command as needed.

Both methods use the `mongod.conf` file created during the install. You can add your own MongoDB [configuration options](https://www.mongodb.com/docs/manual/reference/configuration-options.md) to this file as well.

**Note: macOS Prevents mongod From Opening**

macOS may prevent [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) from running after installation. If you receive a security error when starting [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) indicating that the developer could not be identified or verified, do the following to grant [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) access to run:

- Open *System Settings*

- Click *Privacy & Security* in the sidebar.

- In the *Security* section, click the Open Anyway button to the right of the message about [`mongod`.](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod)

To verify that MongoDB is running, perform one of the following:

- If you started MongoDB **as a macOS service**:

  ```bash
  brew services list
  ```

  You should see the service `mongodb-community` listed as `started`.

- If you started MongoDB **manually as a background process**:

  ```bash
  ps aux | grep -v grep | grep mongod
  ```

  You should see your `mongod` process in the output.

You can also view the log file to see the current status of your `mongod` process: `/usr/local/var/log/mongodb/mongo.log`.

#### Connect and Use MongoDB

To begin using MongoDB, connect [`mongosh`](https://www.mongodb.com/docs/mongodb-shell.md#mongodb-binary-bin.mongosh) to the running instance. From a new terminal, issue the following:

```bash
mongosh
```

For information on CRUD (Create,Read,Update,Delete) operations, see:

- [Create Documents](https://www.mongodb.com/docs/manual/tutorial/insert-documents.md)

- [Read Documents](https://www.mongodb.com/docs/manual/tutorial/query-documents.md)

- [Update Documents](https://www.mongodb.com/docs/manual/tutorial/update-documents.md)

- [Delete Documents](https://www.mongodb.com/docs/manual/tutorial/delete-documents.md#std-label-write-op-delete)

### Using the MongoDB Database Tools

Starting in MongoDB 4.4.1, installing MongoDB through `brew` also installs the MongoDB Database Tools.

The [MongoDB Database Tools](https://www.mongodb.com/docs/database-tools/) are a collection of command-line utilities for working with a MongoDB deployment, including data backup and import/export tools like [`mongoimport`](https://www.mongodb.com/docs/database-tools/mongoimport.md#mongodb-binary-bin.mongoimport) and [`mongodump`](https://www.mongodb.com/docs/database-tools/mongodump.md#mongodb-binary-bin.mongodump) as well as monitoring tools like [`mongotop`.](https://www.mongodb.com/docs/database-tools/mongotop.md#mongodb-binary-bin.mongotop)

Once you have installed the MongoDB Server in the steps above, the Database Tools are available directly from the command line in your macOS Terminal application. For example you could run [`mongotop`](https://www.mongodb.com/docs/database-tools/mongotop.md#mongodb-binary-bin.mongotop) against your running MongoDB instance by invoking it in your macOS Terminal like so:

```bash
mongotop
```

It should start up, connect to your running [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod), and start reporting usage statistics.

See the [MongoDB Database Tools Documentation](https://www.mongodb.com/docs/database-tools/) for usage information for each of the Database Tools.

### Additional Information

#### Localhost Binding by Default

By default, MongoDB launches with [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp) set to `127.0.0.1`, which binds it to the localhost network interface. This means that the `mongod` instance only accepts connections from clients running on the same machine. To allow remote clients to access the `mongod` instance or to initialize a [replica set](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-replica-set) on the instance, you must bind `mongod` to a publicly-accessible network interface.

To bind the network interface, use the [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp) setting in the configuration file or start `mongod` with the [`--bind_ip`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--bind_ip) command-line option.

**Warning:**

Before you bind your instance to a publicly-accessible IP address, you must secure your cluster from unauthorized access. For a complete list of security recommendations, see [Security Checklist for Self-Managed Deployments](https://www.mongodb.com/docs/manual/administration/security-checklist.md#std-label-security-checklist). At minimum, consider [enabling authentication](https://www.mongodb.com/docs/manual/administration/security-checklist.md#std-label-checklist-auth) and [hardening network infrastructure.](https://www.mongodb.com/docs/manual/core/security-hardening.md#std-label-network-config-hardening)

For more information on configuring [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp), see [IP Binding in Self-Managed Deployments.](https://www.mongodb.com/docs/manual/core/security-mongodb-configuration.md#std-label-ip-binding)

#### Troubleshooting ChecksumMismatchError

If you have previously installed an older version of the formula, you may encounter a `ChecksumMismatchError` resembling the following:

```bash
Error: An exception occurred within a child process:

  ChecksumMismatchError: SHA256 mismatch

Expected: c7214ee7bda3cf9566e8776a8978706d9827c1b09017e17b66a5a4e0c0731e1f

  Actual: 6aa2e0c348e8abeec7931dced1f85d4bb161ef209c6af317fe530ea11bbac8f0

 Archive: /Users/kay/Library/Caches/Homebrew/downloads/a6696157a9852f392ec6323b4bb697b86312f0c345d390111bd51bb1cbd7e219--mongodb-macos-x86_64-4.2.0.tgz

To retry an incomplete download, remove the file above.
```

To fix:

1. Remove the downloaded `.tgz` archive.

2. Retap the formula.

   ```bash
   brew untap mongodb/brew && brew tap mongodb/brew
   ```

3. Retry the install.

   ```bash
   brew install mongodb-community@9.0
   ```

## Install MongoDB Community on macOS using `.tgz` Tarball

### Overview

Use this tutorial to manually install MongoDB 9.0 Community Edition on macOS using a downloaded `.tgz` tarball.

#### MongoDB Version

This tutorial installs MongoDB 9.0 Community Edition. To install a different version of MongoDB Community, use the version drop-down menu in the sidebar and select the documentation for that version.

#### Installation Method

While you can install MongoDB manually using a downloaded `.tgz` tarball as described in this document, MongoDB recommends using the system package manager for your distribution. Package managers automatically install all necessary dependencies, provide an example `mongod.conf` file and system service configurations, and simplify future upgrade and maintenance tasks.

➤ See [Install MongoDB using the brew Package Manager](https://www.mongodb.com/docs/manual/administration/install-community-macos.md#std-label-install-mdb-community-macos) for instructions.

### Considerations

#### MongoDB Shell, `mongosh`

When you use the `.tgz` package to install the server, you need to follow the [mongosh installation instructions](https://www.mongodb.com/docs/mongodb-shell/install/) to download and install [mongosh](https://www.mongodb.com/docs/mongodb-shell/) separately.

#### Platform Support

MongoDB 9.0 Community Edition supports macOS 15 or later, and requires a Haswell or newer CPU architecture.

For more information, see [Platform Support.](https://www.mongodb.com/docs/manual/administration/production-notes.md#std-label-prod-notes-supported-platforms)

#### Production Notes

Before deploying MongoDB in a production environment, see the [Production Notes for Self-Managed Deployments](https://www.mongodb.com/docs/manual/administration/production-notes.md) document for performance considerations and configuration recommendations.

### Install MongoDB Community Edition

To manually install MongoDB Community Edition from the `.tgz`, select the tab that corresponds with your Mac's processor and complete the following steps:

### Intel

1. Download the tarball.

   Download the MongoDB Community `tgz` tarball from the following link:

   ➤

   [MongoDB Download Center](https://www.mongodb.com/try/download/community)

   In the Version dropdown, select the version of MongoDB to download.

   In the Platform dropdown, select macOS.

   In the Package dropdown, select tgz.

   Click Download.

2. Extract the files from the downloaded archive.

   ```sh
   tar -zxvf mongodb-macos-x86_64-9.0.tgz
   ```

   If your web browser automatically unzips the file as part of the download, the file ends in `.tar` instead.

3. Ensure the binaries are in a directory listed in your `PATH` environment variable.

   The MongoDB binaries are in the `bin/` directory of the tarball. You can either:

   - Copy the binaries into a directory listed in your `PATH` variable, such as `/usr/local/bin`. Replace `/path/to/the/mongodb-directory/` with your installation directory.

     ```bash
     sudo cp /path/to/the/mongodb-directory/bin/* /usr/local/bin/
     ```

   - Create symbolic links to the binaries from a directory listed in your `PATH` variable, such as `/usr/local/bin`. Replace `/path/to/the/mongodb-directory/` with your installation directory.

     ```bash
     sudo ln -s  /path/to/the/mongodb-directory/bin/* /usr/local/bin/
     ```

### Run MongoDB Community Edition

ulimit Considerations

Most Unix-like operating systems limit the system resources that a process may use. These limits may negatively impact MongoDB operation, and should be adjusted. See [UNIX ulimit Settings for Self-Managed Deployments](https://www.mongodb.com/docs/manual/reference/ulimit.md) for the recommended settings for your platform.

**Note:**

If the `ulimit` value for number of open files is under `64000`, MongoDB generates a startup warning.

#### Procedure

Follow these steps to run MongoDB Community Edition. These instructions assume that you are using the default settings.

1. Create the data directory.

   Before you start MongoDB for the first time, you must create the directory to which the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process will write data.

   For example, to create the `~/data/db` directory:

   ```sh
   sudo mkdir -p ~/data/db

   ```

2. Create the log directory.

   You must also create the directory in which the `mongod` process will write its log file:

   For example, to create the `~/data/log/mongodb` directory:

   ```sh
   sudo mkdir -p ~/data/log/mongodb

   ```

3. Set permissions for the data and log directories.

   Ensure that the user account running [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) has read and write permissions for these two directories. If you are running [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) as your own user account, and you just created the two directories above, they should already accessible to your user. Otherwise, you can use `chown` to set ownership, substituting the appropriate *user*:

   ```sh
   sudo chown <user> ~/data/db
   sudo chown <user> ~/data/log/mongodb

   ```

4. Run MongoDB.

   To run MongoDB, run the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process at the system prompt, providing the two parameters `dbpath` and `logpath` from above, and the `nohup` command to run [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) in the background. Alternatively, you may choose to store the values for `dbpath`, `logpath`, and many other parameters in a [configuration file.](https://www.mongodb.com/docs/manual/reference/configuration-options.md#std-label-configuration-options)

   ###### Run `mongod` with command-line parameters

   Run the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process at the system prompt, providing the three necessary parameters directly on the command-line:

   ```sh
   nohup mongod --dbpath ~/path/to/dbdir --logpath ~/path/to/mongodb.log >/dev/null &

   ```

   ###### Run `mongod` with a configuration file

   Run the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process at the system prompt, providing the path to a [configuration file](https://www.mongodb.com/docs/manual/reference/configuration-options.md#std-label-configuration-options) with the `config` parameter:

   ```sh
   mongod --config /usr/local/etc/mongod.conf

   ```

   macOS may prevent [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) from running after installation. If you receive a security error when starting [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) indicating that the developer could not be identified or verified, do the following to grant [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) access to run:

   - Open *System Settings*

   - Click *Privacy & Security* in the sidebar.

   - In the *Security* section, click the Open Anyway button to the right of the message about [`mongod`.](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod)

5. Verify that MongoDB has started successfully.

   Verify that MongoDB has started successfully:

   ```none
   ps aux | grep -v grep | grep mongod

   ```

   If you do not see a `mongod` process running, check the logfile for any error messages.

6. Begin using MongoDB.

   Start a [`mongosh`](https://www.mongodb.com/docs/mongodb-shell.md#mongodb-binary-bin.mongosh) session on the same host machine as the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod). You can run [`mongosh`](https://www.mongodb.com/docs/mongodb-shell.md#mongodb-binary-bin.mongosh) without any command-line options to connect to a [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) that is running on your *localhost* with the default port of *27017*:

   ```shell
   mongosh

   ```

   For more information on connecting using [`mongosh`](https://www.mongodb.com/docs/mongodb-shell.md#mongodb-binary-bin.mongosh), such as to connect to a [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) instance running on a different host and/or port, see the [mongosh documentation.](https://www.mongodb.com/docs/mongodb-shell/)

   To help you start using MongoDB, MongoDB provides [Getting Started Guides](https://www.mongodb.com/docs/manual/tutorial/getting-started.md#std-label-getting-started) in various driver editions. See [Getting Started with MongoDB](https://www.mongodb.com/docs/manual/tutorial/getting-started.md#std-label-getting-started) for the available editions.

### Additional Information

#### Localhost Binding by Default

By default, MongoDB launches with [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp) set to `127.0.0.1`, which binds it to the localhost network interface. This means that the `mongod` instance only accepts connections from clients running on the same machine. To allow remote clients to access the `mongod` instance or to initialize a [replica set](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-replica-set) on the instance, you must bind `mongod` to a publicly-accessible network interface.

To bind the network interface, use the [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp) setting in the configuration file or start `mongod` with the [`--bind_ip`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--bind_ip) command-line option.

**Warning:**

Before you bind your instance to a publicly-accessible IP address, you must secure your cluster from unauthorized access. For a complete list of security recommendations, see [Security Checklist for Self-Managed Deployments](https://www.mongodb.com/docs/manual/administration/security-checklist.md#std-label-security-checklist). At minimum, consider [enabling authentication](https://www.mongodb.com/docs/manual/administration/security-checklist.md#std-label-checklist-auth) and [hardening network infrastructure.](https://www.mongodb.com/docs/manual/core/security-hardening.md#std-label-network-config-hardening)

For more information on configuring [`bindIp`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-net.bindIp), see [IP Binding in Self-Managed Deployments.](https://www.mongodb.com/docs/manual/core/security-mongodb-configuration.md#std-label-ip-binding)

## Next Steps

After you install MongoDB Community Edition, you can:

- **Get started**: Work through an introductory tutorial. To learn more, see [Getting Started with MongoDB.](https://www.mongodb.com/docs/manual/tutorial/getting-started.md#std-label-getting-started)

- **Deploy a replica set**: Set up replication for high availability. To learn how, see [Deploy a Self-Managed Replica Set.](https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set.md#std-label-server-replica-set-deploy)

- **Set up access control**: Secure your deployment with authentication. To learn how, see [Enable Access Control on Self-Managed Deployments.](https://www.mongodb.com/docs/manual/tutorial/enable-authentication.md#std-label-enable-access-control)

- **Review the security checklist**: Confirm your deployment follows security best practices. To learn more, see [Security Checklist for Self-Managed Deployments.](https://www.mongodb.com/docs/manual/administration/security-checklist.md#std-label-security-checklist)

## Upgrade Community Edition to Enterprise Edition Tutorials

**Important:**

Do not use these instructions to upgrade to another release version.

For general guidance on MongoDB version numbering, release types, and upgrade paths, see [MongoDB Versions and Upgrade Paths.](https://www.mongodb.com/docs/mongodb-versions.md#std-label-versions-and-upgrade-paths)

- [Upgrade to MongoDB Enterprise (Standalone)](https://www.mongodb.com/docs/manual/tutorial/upgrade-to-enterprise-standalone.md#std-label-upgrade_to_enterprise_standalone)

- [Upgrade to MongoDB Enterprise (Replica Set)](https://www.mongodb.com/docs/manual/tutorial/upgrade-to-enterprise-replica-set.md#std-label-upgrade_to_enterprise_rs)

- [Upgrade to MongoDB Enterprise (Sharded Cluster)](https://www.mongodb.com/docs/manual/tutorial/upgrade-to-enterprise-sharded-cluster.md#std-label-upgrade_to_enterprise_sharded_cluster)
