Install MongoDB

MongoDB is available in two editions: Community and Enterprise.

Tip

This section of the manual contains information on installingMongoDB.

MongoDB Community Edition Installation Tutorials

MongoDB Community Edition installation tutorials include:

LinuxInstall MongoDB Community Edition on Red Hat or CentOSInstall MongoDB Community Edition on UbuntuInstall MongoDB Community Edition on DebianInstall MongoDB Community Edition on SUSEInstall MongoDB Community on Amazon Linux
macOSInstall MongoDB Community Edition on macOS
WindowsInstall MongoDB Community Edition on Windows

MongoDB Enterprise Edition Installation Tutorials

MongoDB Enterprise Edition installation tutorials include:

LinuxInstall MongoDB Enterprise Edition on Red Hat or CentOSInstall MongoDB Enterprise Edition on UbuntuInstall MongoDB Enterprise Edition on DebianInstall MongoDB Enterprise Edition on SUSEInstall MongoDB Enterprise on Amazon Linux
macOSInstall MongoDB Enterprise on macOS
WindowsInstall MongoDB Enterprise Edition on Windows
DockerInstall MongoDB Enterprise with Docker

Upgrade Community Edition to Enterprise Edition Tutorials

Important

Do not use these instructions to upgrade to another release version.To upgrade release versions, refer to the appropriate releaseupgrade instructions, such as Upgrade to MongoDB 4.2.

Supported Platforms

Changed in version 3.4: MongoDB no longer supports 32-bit x86 platforms.

x86_64

Platform4.2 Community & Enterprise4.0 Community & Enterprise3.6 Community & Enterprise3.4 Community & Enterprise
Amazon Linux 2013.03 and later
Amazon Linux 2
Debian 8
Debian 93.6.5+
Debian 104.2.1+
RHEL/CentOS/Oracle Linux [1] 6.2 and later
RHEL/CentOS/Oracle Linux [1] 7.0 and later
RHEL/CentOS/Oracle Linux [1] 8.0 and later4.2.1+
SLES 12
Solaris 11 64-bit Community only
Ubuntu 14.04
Ubuntu 16.04
Ubuntu 18.04
Windows Vista
Windows 7/Server 2008 R2
Windows 8/2012 R2 and later
macOS 10.12 and later
macOS 10.11
[1](1, 2, 3) MongoDB only supports Oracle Linux running the Red Hat CompatibleKernel (RHCK). MongoDB does not support the UnbreakableEnterprise Kernel (UEK).

ARM64

Platform4.2 Community & Enterprise4.0 Community & Enterprise3.6 Community & Enterprise3.4 Community & Enterprise
Ubuntu 18.04
Ubuntu 16.04 EnterpriseEnterprise

PPC64LE (MongoDB Enterprise Edition)

Platform4.2 Enterprise4.0 Enterprise3.6 Enterprise3.4 Enterprise
RHEL/CentOS 7
Ubuntu 16.04 Removed starting in 3.6.13Removed starting in 3.4.21

s390x

Platform4.2 Community & Enterprise4.0 Community & Enterprise3.6 Enterprise3.4 Enterprise
RHEL/CentOS 74.0.6+
RHEL/CentOS 6
SLES124.0.6+
Ubuntu 18.044.0.6+