Install MongoDB¶
On this page
MongoDB is available in two server editions: Community and Enterprise.
MongoDB Atlas
MongoDB Atlas
is a hosted MongoDB service option in the cloud which requires no
installation overhead and offers a free tier to get started.
This section of the manual contains information on installing MongoDB.
- For instructions on upgrading your current deployment to MongoDB 4.2, see Upgrade Procedures instead.
- For instructions on upgrading to the latest patch release for your current version, see Upgrade to the Latest Revision of MongoDB instead.
MongoDB Community Edition Installation Tutorials¶
MongoDB Community Edition installation tutorials include:
Linux | |
macOS | Install MongoDB Community Edition on macOS |
Windows | Install MongoDB Community Edition on Windows |
MongoDB Enterprise Edition Installation Tutorials¶
MongoDB Enterprise Edition installation tutorials include:
Linux | |
macOS | Install MongoDB Enterprise on macOS |
Windows | Install MongoDB Enterprise Edition on Windows |
Docker | Install 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 release upgrade 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¶
Platform Support EOL Notice
Ubuntu 14.04 | Support removed in MongoDB 4.2+. |
Debian 8 | Support removed in MongoDB 4.2+. |
macOS 10.11 | Support removed in MongoDB 4.2+. |
Upcoming EOL Notice:
Windows 8.1/2012R2 | MongoDB will end support in future releases. |
Windows 8/2012 | MongoDB will end support in future releases. |
Windows 7/2008R2 | MongoDB will end support in future releases. |
Platform | 4.2 Community & Enterprise | 4.0 Community & Enterprise | 3.6 Community & Enterprise | 3.4 Community & Enterprise |
---|---|---|---|---|
Amazon Linux 2 | ✓ | ✓ | 3.6.22+ | |
Amazon Linux 2013.03 and later | ✓ | ✓ | ✓ | ✓ |
Debian 10 | 4.2.1+ | |||
Debian 9 | ✓ | ✓ | 3.6.5+ | |
Debian 8 | ✓ | ✓ | ✓ | |
RHEL/CentOS/Oracle Linux [1] 8.0 and later | 4.2.1+ | 4.0.14+ | 3.6.17+ | |
RHEL/CentOS/Oracle Linux [1] 7.0 and later | ✓ | ✓ | ✓ | ✓ |
RHEL/CentOS/Oracle Linux [1] 6.2 and later | ✓ | ✓ | ✓ | ✓ |
SLES 15 | 4.2.1+ | |||
SLES 12 | ✓ | ✓ | ✓ | ✓ |
Solaris 11 64-bit | Community only | |||
Ubuntu 18.04 | ✓ | 4.0.1+ | 3.6.20+ | |
Ubuntu 16.04 | ✓ | ✓ | ✓ | ✓ |
Ubuntu 14.04 | ✓ | ✓ | ✓ | |
Windows Server 2019 | ✓ | |||
Windows 10 / Server 2016 | ✓ | ✓ | ✓ | ✓ |
Windows 8.1 / Server 2012 R2 | ✓ | ✓ | ✓ | ✓ |
Windows 8 / Server 2012 | ✓ | ✓ | ✓ | ✓ |
Windows 7 / Server 2008 R2 | ✓ | ✓ | ✓ | ✓ |
Windows Vista | ✓ | |||
macOS 10.13 and later | ✓ | ✓ | ||
macOS 10.12 | ✓ | ✓ | ✓ | ✓ |
macOS 10.11 | ✓ | ✓ | ✓ | |
macOS 10.10 | ✓ | ✓ |
[1] | (1, 2, 3) MongoDB only supports Oracle Linux running the Red Hat Compatible Kernel (RHCK). MongoDB does not support the Unbreakable Enterprise Kernel (UEK). |
[2] | MongoDB on-premises products released for RHEL version 8.0+ are compatible with and supported on Rocky Linux version 8.0+ and AlmaLinux version 8.0+, contingent upon those distributions meeting their obligation to deliver full RHEL compatibility. |
ARM64¶
Platform Support EOL Notice
Ubuntu 16.04 ARM64 | Support removed in MongoDB Community 4.2+. |
Platform | 4.2 Community & Enterprise | 4.0 Community & Enterprise | 3.6 Community & Enterprise | 3.4 Community & Enterprise |
---|---|---|---|---|
Amazon Linux 2 | 4.2.13+ | |||
Ubuntu 18.04 | ✓ | |||
Ubuntu 16.04 | Enterprise only | ✓ | ✓ | ✓ |
PPC64LE (MongoDB Enterprise Edition)¶
Platform Support EOL Notice
Ubuntu 16.04 PPC64LE | Support removed in MongoDB 4.2+. |
Platform | 4.2 Enterprise | 4.0 Enterprise | 3.6 Enterprise | 3.4 Enterprise |
---|---|---|---|---|
RHEL/CentOS 8 | 4.2.7+ | |||
RHEL/CentOS 7 | ✓ | 4.0.0 - 4.0.27 | ✓ | ✓ |
Ubuntu 18.04 | 4.2.1 - 4.2.19 | |||
Ubuntu 16.04 | 4.0.0-4.0.27 | Removed starting in 3.6.13 | Removed starting in 3.4.21 |
s390x (MongoDB Community Edition)¶
Platform Support EOL Notice
RHEL 7 s390x | Support removed in MongoDB 4.2.10 Community. |
SLES 12 s390x | Support removed in MongoDB 4.2.10 Community. |
Ubuntu 18.04 s390x | Support removed in MongoDB 4.2.10 Community. |
Platform | 4.2 Community | 4.0 Community | 3.6 Community | 3.4 Community |
---|---|---|---|---|
RHEL/CentOS 7 | 4.2.0 - 4.2.9 | 4.0.6 - 4.0.13 | ||
RHEL/CentOS 6 | 4.0.0 - 4.0.13 | |||
SLES 12 | 4.2.0 - 4.2.9 | 4.0.6 - 4.0.13 | ||
Ubuntu 18.04 | 4.2.1 - 4.2.9 | 4.0.6 - 4.0.13 |
s390x (MongoDB Enterprise Edition)¶
Platform Support EOL Notice
RHEL 6 s390x | Support removed in MongoDB Enterprise 4.2.15. |
RHEL s390x | Support removed in MongoDB Enterprise 4.2.19. |
SLES 12 s390x | Support removed in MongoDB Enterprise 4.2.15. |
Ubuntu 18.04 s390x | Support removed in MongoDB Enterprise 4.2.15. |
Platform | 4.2 Enterprise | 4.0 Enterprise | 3.6 Enterprise | 3.4 Enterprise |
---|---|---|---|---|
RHEL/CentOS 7 | 4.2.0 - 4.2.19 | 4.0.6 - 4.0.27 | Removed starting in 3.6.17 | Removed starting in 3.4.15 |
RHEL/CentOS 6 | 4.2.4 - 4.2.14 | 4.0.0 - 4.0.24 | Removed starting in 3.6.14 | Removed starting in 3.4.22 |
SLES 12 | Removed starting in 4.2.15 | 4.0.6 - 4.0.24 | Removed starting in 3.6.17 | Removed starting in 3.4.14 |
Ubuntu 18.04 | 4.2.1 - 4.2.14 | 4.0.6 - 4.0.25 |