> 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: ubuntu26, ubuntu24, ubuntu22, sles16, sles15, rhel10, rhel9, rhel8, latest, specific, config, opts
-->

# Install MongoDB Community on Linux

Select your distribution to view installation 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.

## About This Task

Use this tutorial to install MongoDB 9.0 Community Edition on Red Hat Enterprise Linux, Rocky Linux, AlmaLinux, or Oracle Linux using the YUM package manager.

**Important:**

MongoDB only supports Oracle Linux running the Red Hat Compatible Kernel (RHCK). MongoDB does not support the Unbreakable Enterprise Kernel (UEK).

### 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)

### ulimit

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.

Use this tutorial to manually install MongoDB 9.0 Community Edition on Red Hat Enterprise Linux, CentOS Linux, or Oracle Linux using a downloaded `.tgz` tarball.

**Important:**

MongoDB only supports Oracle Linux running the Red Hat Compatible Kernel (RHCK). MongoDB does not support the Unbreakable Enterprise Kernel (UEK).

### 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)

### ulimit

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.

### 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.

For details, see [Install MongoDB using the YUM Package Manager.](https://www.mongodb.com/docs/manual/administration/install-community-linux.md#std-label-install-mdb-community-redhat-centos)

Use this tutorial to install MongoDB 9.0 Community Edition on Ubuntu using the APT package manager.

### 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)

### ulimit

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.

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

### 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)

### ulimit

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.

### 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.

For details, see [Install MongoDB using the APT Package Manager.](https://www.mongodb.com/docs/manual/administration/install-community-linux.md#std-label-install-mdb-community-ubuntu)

Use this tutorial to install MongoDB 9.0 Community Edition on Debian using the APT package manager.

### 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)

### ulimit

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.

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

### 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)

### ulimit

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.

### 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.

For details, see [Install MongoDB using the APT Package Manager.](https://www.mongodb.com/docs/manual/administration/install-community-linux.md#std-label-install-mdb-community-debian)

Use this tutorial to install MongoDB 9.0 Community Edition on SUSE Linux Enterprise Server using the ZYpp package manager.

### 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)

### ulimit

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.

Use this tutorial to manually install MongoDB 9.0 Community Edition on SUSE Linux Enterprise Server using a downloaded `.tgz` tarball.

### 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)

### ulimit

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.

### 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.

For details, see [Install MongoDB using the ZYpp Package Manager.](https://www.mongodb.com/docs/manual/administration/install-community-linux.md#std-label-install-mdb-community-suse)

Use this tutorial to install MongoDB 9.0 Community Edition on Amazon Linux using the YUM package manager.

### 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)

### ulimit

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.

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

### 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)

### ulimit

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.

### 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.

For details, see [Install MongoDB using the YUM Package Manager.](https://www.mongodb.com/docs/manual/administration/install-community-linux.md#std-label-install-mdb-community-amazon-linux)

## Before You Begin

These instructions use the official `mongodb-org` package to install MongoDB Community Edition. MongoDB, Inc., maintains and supports this package. The package always contains the latest version of MongoDB 9.0 available from its own dedicated repository.

**Important:**

The `mongodb` package provided by your distribution is not maintained by MongoDB, Inc., and conflicts with the official `mongodb-org` package. If you have already installed the `mongodb` package on your system, you must uninstall it before proceeding.

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

These instructions use the official `.tgz` download to install MongoDB Community Edition. The `.tgz` is available through the [MongoDB Download Center](https://www.mongodb.com/try/download/community/).

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

### Prerequisites

Use the following command to install the required dependencies for MongoDB 9.0:

```bash
sudo yum install libcurl openssl xz-libs
```

### 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.

These instructions use the official `.tgz` download to install MongoDB Community Edition. The `.tgz` is available through the [MongoDB Download Center](https://www.mongodb.com/try/download/community/).

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

### Prerequisites

Use the following command to install the required dependencies for MongoDB 9.0:

### Ubuntu 26.04 (Resolute)

```bash
sudo apt-get install libcurl4 libgssapi-krb5-2 libldap2 libwrap0 libsasl2-2 libsasl2-modules libsasl2-modules-gssapi-mit openssl liblzma5
```

### 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.

These instructions use the official `.tgz` download to install MongoDB Community Edition. The `.tgz` is available through the [MongoDB Download Center](https://www.mongodb.com/try/download/community/).

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

### Prerequisites

Use the following command to install the required dependencies for MongoDB 9.0:

```bash
sudo apt-get install libcurl4 libgssapi-krb5-2 libldap-common libwrap0 libsasl2-2 libsasl2-modules libsasl2-modules-gssapi-mit openssl liblzma5
```

### 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.

These instructions use the official `.tgz` download to install MongoDB Community Edition. The `.tgz` is available through the [MongoDB Download Center](https://www.mongodb.com/try/download/community/).

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

### Prerequisites

Use the following command to install the required dependencies for MongoDB 9.0:

### SLES 16

```bash
sudo zypper install libcurl4 libopenssl1_1
```

### 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.

These instructions use the official `.tgz` download to install MongoDB Community Edition. The `.tgz` is available through the [MongoDB Download Center](https://www.mongodb.com/try/download/community/).

### 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.

### Platform Support

For details on supported platforms, see [Supported Platforms for MongoDB Community.](https://www.mongodb.com/docs/community-platform-support.md#std-label-landing-community-platform-support)

### 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.

### Prerequisites

Use the following command to install the required dependencies for MongoDB 9.0:

```bash
sudo yum install libcurl openssl xz-libs
```

### 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.

## Install

1. Configure the repository.

   To configure the repository, use a text editor to copy the repository information into the `/etc/yum.repos.d/mongodb-org-9.0.repo` file:

   ### RHEL 10

   ```cfg
   [mongodb-org-9.0]
   name=MongoDB Repository
   baseurl=https://repo.mongodb.org/yum/redhat/10/mongodb-org/9.0/x86_64/
   gpgcheck=1
   enabled=1
   gpgkey=https://pgp.mongodb.com/server-9.asc
   ```

   Use the repository information for your version of Red Hat Enterprise Linux or for the version of RHEL that corresponds to your distribution release. For example, use the RHEL 10 information for Rocky Linux 10.

   **Note:**

   Alternatively, you can download the `.rpm` files directly from the [MongoDB repository](https://repo.mongodb.org/yum/redhat/). Downloads are organized by Red Hat / CentOS version (e.g. `9`), then MongoDB [release version](https://www.mongodb.com/docs/manual/reference/versioning.md#std-label-release-version-numbers) (e.g. `9.0`), then architecture (e.g. `x86_64`).

2. Install MongoDB Community Server.

   ### Latest Release

   To install the latest stable version of MongoDB Community, issue the following command:

   ```sh
   sudo yum install -y mongodb-org
   ```

3. Configure SELinux.

   Optional. If you plan to run MongoDB Community with the default port and data directory configuration, you can use the official MongoDB policy to configure SELinux to enforce mandatory access controls on the `mongod` instance.

   For details, see [Configure the MongoDB SELinux Policy.](https://www.mongodb.com/docs/manual/tutorial/selinux/mongodb-policy.md#std-label-manual-selinux)

1) Import the public key.

   From a terminal, install `gnupg` and `curl` if they are not already available:

   ```bash
   sudo apt-get install gnupg curl
   ```

   To import the MongoDB public GPG key, run the following command:

   ```bash
   curl -fsSL https://pgp.mongodb.com/server-9.asc | \
      sudo gpg -o /usr/share/keyrings/mongodb-server-9.gpg \
      --dearmor
   ```

2) Create the list file.

   Create the list file `/etc/apt/sources.list.d/mongodb-org-9.0.list` for your version of Ubuntu.

   ### Ubuntu 26.04 (Resolute)

   Create the list file for Ubuntu 26.04 (Resolute):

   ```bash
   echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-9.gpg ] https://repo.mongodb.org/apt/ubuntu resolute/mongodb-org/9.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-9.0.list
   ```

3) Reload the package database.

   Issue the following command to reload the local package database:

   ```bash
   sudo apt-get update
   ```

4) Install MongoDB Community Server.

   You can install either the latest stable version of MongoDB or a specific version of MongoDB.

   ### Latest Release

   To install the latest stable version, issue the following

   ```bash
   sudo apt-get install -y mongodb-org
   ```

1. Import the public key.

   From a terminal, install `gnupg` and `curl` if they are not already available:

   ```bash
   sudo apt-get install gnupg curl
   ```

   To import the MongoDB public GPG key, run the following command:

   ```bash
   curl -fsSL https://pgp.mongodb.com/server-9.asc | \
      sudo gpg -o /usr/share/keyrings/mongodb-server-9.gpg \
      --dearmor
   ```

2. Create the list file.

   Create the list file for Debian 13 (Trixie):

   ```bash
   echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-9.gpg ] https://repo.mongodb.org/apt/debian trixie/mongodb-org/9.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-9.0.list
   ```

3. Reload the package database.

   Issue the following command to reload the local package database:

   ```bash
   sudo apt-get update
   ```

4. Install MongoDB Community Server.

   You can install either the latest stable version of MongoDB or a specific version of MongoDB.

   ### Latest Release

   To install the latest stable version, issue the following

   ```bash
   sudo apt-get install -y mongodb-org
   ```

1) Import the public key.

   ```sh
   sudo rpm --import https://pgp.mongodb.com/server-9.asc
   ```

2) Add the repository.

   Select the tab for your version of SUSE:

   ### SLES 16

   To add the repository file for SUSE Enterprise Linux 16, run the following command:

   ```sh
   sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/16/mongodb-org/9.0/x86_64/" mongodb
   ```

3) Install MongoDB packages.

   You can install either the latest stable release of MongoDB or a specific release of MongoDB.

   ### Latest Release

   To install the latest version of MongoDB, run the following command:

   ```sh
   sudo zypper -n install mongodb-org
   ```

1. Configure the repository.

   Create a `/etc/yum.repos.d/mongodb-org-9.0.repo` file so that you can install MongoDB directly using `yum`:

   ```cfg
   [mongodb-org-9.0]
   name=MongoDB Repository
   baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/9.0/$basearch/
   gpgcheck=1
   enabled=1
   gpgkey=https://pgp.mongodb.com/server-9.asc
   ```

   You can also download the `.rpm` files directly from the [MongoDB repository](https://repo.mongodb.org/yum/amazon/). Downloads are organized by Amazon Linux 2023 version (for example, `2023`), then MongoDB [version](https://www.mongodb.com/docs/manual/reference/versioning.md#std-label-release-version-numbers) (`9.0`), then architecture (`x86_64` or `aarch64`).

2. Install MongoDB Community Server.

   ### Latest Release

   To install the latest stable version of MongoDB, run the following command:

   ```sh
   sudo yum install -y mongodb-org
   ```

1) Download the tarball.

   After you have installed the required prerequisite packages, download the MongoDB Community `tgz` tarball:

   Navigate to [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 your operating system version and architecture.

   In the Package dropdown, select tgz.

   Click Download.

2) Extract the files.

   Using an archive manager program or the `tar` command, extract the files. For example, from a system shell, you can extract using the `tar` command:

   ```bash
   tar -zxvf mongodb-*-9.0.4.tgz
   ```

3) (Optional) Ensure binaries in PATH.

   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` (Update `/path/to/the/mongodb-directory/` with your installation directory as appropriate)

     ```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` (Update `/path/to/the/mongodb-directory/` with your installation directory as appropriate):

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

4) (Optional) Install MongoDB Shell (mongosh).

   [Install](https://www.mongodb.com/docs/mongodb-shell/install/) `mongosh` then use the MongoDB Shell to connect to your deployment.

   Download the package for the version of `mongosh` you need from the [MongoDB Download Center](https://www.mongodb.com/try/download/community/) and uncompress the package.

## Start and Verify

1. Verify the MongoDB Community installation.

   To confirm that the installation was successful, run `mongod` with the [`--version`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--version) option:

   ```bash
   mongod --version
   ```

   **Output:**

   ```bash
   db version 9.0.4
   Build Info: {
       "version": "9.0.4",
       "gitVersion": "<git-hash>",
       "modules": [
           "community"
       ],
       "allocator": "system",
       "javascriptEngine": "mozjs-wasm",
       "environment": {
           "distarch": "x86_64",
           "target_arch": "x86_64"
       }
   }
   ```

2. Start MongoDB Community.

   To start the MongoDB service, use the `systemctl` command:

   ```bash
   sudo systemctl start mongod
   ```

3. Verify that MongoDB Community is running.

   To verify that the MongoDB service is running, check its status with the `systemctl` command:

   ```bash
   systemctl status mongod
   ```

   **Output:**

   ```none
   ● mongod.service - High-performance, schema-free document-oriented database
        Loaded: loaded (/lib/systemd/system/mongod.service; enabled;
        vendor preset: enabled)
        Active: active (running) since Mon 2026-09-21 09:41:13 UTC;
        4 days ago
          Docs: https://docs.mongodb.org/manual
      Main PID: 8642 (mongod)
        Memory: 148.1M
            CPU: 2m 15s
        CGroup: /system.slice/mongod.service
                └─8642 /usr/bin/mongod --config /etc/mongod.conf
   ```

4. Configure systemd to start MongoDB on boot.

   To configure the MongoDB service to start on boot, use the `systemctl` command:

   ```bash
   sudo systemctl enable mongod
   ```

   **Output:**

   ```none
   Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /usr/lib/systemd/system/mongod.service.
   ```

1) Verify the installation.

   To confirm that the installation was successful, run `mongod` with the [`--version`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--version) option:

   ```bash
   mongod --version
   ```

   **Output:**

   ```bash
   db version 9.0.4
   Build Info: {
       "version": "9.0.4",
       "gitVersion": "<git-hash>",
       "modules": [
           "community"
       ],
       "allocator": "system",
       "javascriptEngine": "mozjs-wasm",
       "environment": {
           "distarch": "x86_64",
           "target_arch": "x86_64"
       }
   }
   ```

2) Start MongoDB Community.

   ### Configuration

   To start the [`mongod`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#mongodb-binary-bin.mongod) process from a configuration file, run the following command:

   ```bash
   mongod --config /path/to/mongod.conf --fork
   ```

## Connect

1. Connect to MongoDB Community.

   To connect to your deployment, run `mongosh`:

   ```sh
   mongosh
   ```

   The command connects to MongoDB Community through the default address: `mongodb://localhost:27017`.

2. Check Server Status.

   To check the status of MongoDB, run the [`serverStatus`](https://www.mongodb.com/docs/manual/reference/command/serverstatus.md#mongodb-dbcommand-dbcmd.serverStatus) command:

   ```javascript
   db.runCommand( { serverStatus: 1, none: 1, mem: 1 } )
   ```

   **Output:**

   ```javascript
   {
     host: '<hostname>',
     version: '9.0.4',
     process: 'mongod',
     pid: Long('71115'),
     uptime: 61,
     uptimeMillis: Long('61213'),
     uptimeEstimate: Long('61'),
     localTime: ISODate("2026-10-27T16:39:04.046Z"),
     ok: 1,
     '$clusterTime': {
       clusterTime: Timestamp(1793119144, 1),
       signature: {
         hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),
         keyId: Long('0')
       }
     },
     operationTime: Timestamp(1793119144, 1)
   }
   ```

## 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)

- **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)

### Deploy a Cluster

In addition to the standalone instance, you can deploy multiple instances of MongoDB Community Edition to form clusters:

- **Replica Sets** provide redundancy to maintain high availability, making your cluster resilient in cases of network partitions and other system failures.

  For details, see [Deploy a Self-Managed Replica Set.](https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set.md#std-label-server-replica-set-deploy)

- **Sharded Clusters** allow you to horizontally scale capacity, balancing collection data across multiple MongoDB instances or replica sets.

  For details, see [Deploy a Self-Managed Sharded Cluster.](https://www.mongodb.com/docs/manual/tutorial/deploy-shard-cluster.md#std-label-sharding-procedure-setup)

### Upgrade to MongoDB Enterprise

**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)

## Learn More

- [MongoDB Community Edition Packages](https://www.mongodb.com/docs/manual/administration/community-packages.md#std-label-manual-community-install-packages)

- [Default Data and Log Directory Paths](https://www.mongodb.com/docs/manual/reference/directory-paths.md#std-label-manual-dir-paths)

- [Configure the MongoDB SELinux Policy](https://www.mongodb.com/docs/manual/tutorial/selinux/mongodb-policy.md#std-label-manual-selinux)
