Install MongoDB
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
MongoDB is available in two server editions: Community and Enterprise.
This section of the manual contains information on installing MongoDB.
For instructions on upgrading your current deployment to MongoDB 5.0, 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 Installation Tutorials
MongoDB installation tutorials are available for the following platforms, for both the Community Edition and the Enterprise Edition:
Platform | Community Edition | Enterprise Edition |
---|---|---|
Linux | ||
macOS | ||
Windows | ||
Docker |
Upgrade Community Edition to Enterprise Edition Tutorials
Supported Platforms
Changed in version 3.4: MongoDB no longer supports 32-bit x86 platforms.
x86_64
Note
Platform Support EOL Notice
RHEL / CentOS 6 | Support removed in MongoDB 5.0+. |
Ubuntu 16.04 | Support removed in MongoDB 5.0+. |
macOS 10.13 | Support removed in MongoDB 5.0+. |
Platform | 5.0 Community & Enterprise | 4.4 Community & Enterprise | 4.2 Community & Enterprise | 4.0 Community & Enterprise |
---|---|---|---|---|
Amazon Linux 2 | ✓ | ✓ | ✓ | ✓ |
Amazon Linux 2013.03 and later | ✓ | ✓ | ||
Debian 10 | ✓ | ✓ | 4.2.1+ | |
Debian 9 | ✓ | ✓ | ✓ | ✓ |
RHEL/CentOS/Oracle Linux [1] 8.0 and later | ✓ | ✓ | 4.2.1+ | 4.0.14+ |
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 | ✓ | ✓ | ✓ | ✓ |
Ubuntu 20.04 | ✓ | ✓ | ||
Ubuntu 18.04 | ✓ | ✓ | ✓ | 4.0.1+ |
Ubuntu 16.04 | ✓ | ✓ | ✓ | |
Windows Server 2019 | ✓ | ✓ | ✓ | |
Windows 10 / Server 2016 | ✓ | ✓ | ✓ | ✓ |
Windows 8.1 / Server 2012 R2 | ✓ | ✓ | ||
Windows 8 / Server 2012 | ✓ | ✓ | ||
Windows 7 / Server 2008 R2 | ✓ | ✓ | ||
macOS 10.14 and later | ✓ | ✓ | ✓ | ✓ |
macOS 10.13 | ✓ | ✓ | ✓ | |
macOS 10.12 | ✓ | ✓ |
[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). |
ARM64
Note
Platform Support EOL Notice
Ubuntu 16.04 | Support removed in MongoDB 5.0+. |
Platform | 5.0 Community & Enterprise | 4.4 Community & Enterprise | 4.2 Community & Enterprise | 4.0 Community & Enterprise |
---|---|---|---|---|
Amazon Linux 2 | ✓ | 4.4.4+ | 4.2.13+ | |
RHEL/CentOS 8 | ✓ | 4.4.4+ | ||
Ubuntu 20.04 | ✓ | ✓ | ||
Ubuntu 18.04 | ✓ | ✓ | ✓ | |
Ubuntu 16.04 | Enterprise only | Enterprise only | ✓ |
PPC64LE (MongoDB Enterprise Edition)
Note
Platform Support EOL Notice
Ubuntu 18.04 PPC64LE | Support removed in MongoDB 5.0+. |
Platform | 5.0 Enterprise | 4.4 Enterprise | 4.2 Enterprise | 4.0 Enterprise |
---|---|---|---|---|
RHEL/CentOS 8 | ✓ | ✓ | 4.2.7+ | |
RHEL/CentOS 7 | ✓ | ✓ | 4.0.0 - 4.0.27 | |
Ubuntu 18.04 | 4.4.0 - 4.4.10 | 4.2.1 - 4.2.17 |
s390x (MongoDB Community Edition)
Note
Platform Support EOL Notice
SLES 12 s390x | Support removed in MongoDB Community 5.0+. |
Ubuntu 18.04 s390x | Support removed in MongoDB Community 5.0+. |
Platform | 5.0 Community | 4.4 Community | 4.2 Community | 4.0 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.4.0 - 4.4.6 | 4.2.0 - 4.2.9 | 4.0.6 - 4.0.13 | |
Ubuntu 18.04 | 4.4.0 - 4.4.6 | 4.2.1 - 4.2.9 | 4.0.6 - 4.0.13 |
s390x (MongoDB Enterprise Edition)
Note
Platform Support EOL Notice
SLES 12 s390x | Support removed in MongoDB Enterprise 5.0+. |
Ubuntu 18.04 s390x | Support removed in MongoDB Enterprise 5.0+. |
Platform | 5.0 Enterprise | 4.4 Enterprise | 4.2 Enterprise | 4.0 Enterprise |
---|---|---|---|---|
RHEL/CentOS 7 | ✓ | ✓ | 4.2.0 - 4.2.17 | 4.0.6 - 4.0.27 |
RHEL/CentOS 6 | 4.2.4 - 4.2.14 | 4.0.0 - 4.0.24 | ||
SLES 12 | 4.4.0 - 4.4.6 | 4.2.0 - 4.2.14 | 4.0.6 - 4.0.24 | |
Ubuntu 18.04 | 4.4.0 - 4.4.6 | 4.2.1 - 4.2.14 | 4.0.6 - 4.0.25 |
Containers
Note
Platform Support EOL Notice
RHEL 7 UBI on Docker | Support removed in MongoDB 5.0+. |
Ubuntu 16.04 on Docker | Support removed in MongoDB 5.0+. |
Platform | 5.0 Community & Enterprise | 4.4 Community & Enterprise |
---|---|---|
RHEL UBI 8 on Docker 19.03+ | ✓ | |
RHEL UBI 7 on Docker 19.03+ | ✓ | |
Ubuntu 18.04 on Docker 19.03+ | ✓ | |
Ubuntu 16.04 on Docker 19.03+ | ✓ |