Docs HomeMongoDB Manual

Install MongoDB安装MongoDB

MongoDB is available in two server editions: Community and Enterprise.MongoDB有两个服务器版本:CommunityEnterprise

Note

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.是云中托管的MongoDB服务选项,无需安装开销,并提供免费的入门层。

This section of the manual contains information on installing MongoDB.本手册的这一部分包含有关安装MongoDB的信息。

MongoDB Installation TutorialsMongoDB安装教程

MongoDB installation tutorials are available for the following platforms, for both the Community Edition and the Enterprise Edition:MongoDB安装教程可用于以下平台,包括Community Edition和Enterprise Edition

PlatformCommunity Edition社区版Enterprise Edition企业版
Linux
macOSInstall MongoDB Community Edition on macOS在macOS上安装MongoDB社区版Install MongoDB Enterprise on macOS在macOS上安装MongoDB Enterprise
WindowsInstall MongoDB Community Edition on Windows在Windows上安装MongoDB社区版Install MongoDB Enterprise Edition on Windows在Windows上安装MongoDB Enterprise Edition
DockerInstall MongoDB Community with Docker使用Docker安装MongoDB社区Install MongoDB Enterprise with Docker使用Docker安装MongoDB Enterprise

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 7.0.要升级发布版本,请参阅相应的发布升级说明,如升级到MongoDB 7.0

Supported Platforms支持的平台

Important

MongoDB does not support 32-bit x86 platforms.MongoDB不支持32位x86平台。

PlatformArchitectureEdition7.06.05.04.4
Amazon Linux 2023x86_64Enterprise6.2.0+
Amazon Linux 2023x86_64Community6.2.0+
Amazon Linux V2x86_64Enterprise
Amazon Linux V2x86_64Community
Debian 12x86_64Enterprise
Debian 11x86_64Enterprise5.0.8+
Debian 11x86_64Enterprise5.0.8+
Debian 11x86_64Community5.0.8+
Debian 10x86_64Enterprise
Debian 10x86_64Community
Debian 9x86_64Enterprise
Debian 9x86_64Community
RHEL/CentOS Stream/Oracle Linux/Rocky/Alma 9.0+x86_64Enterprise6.0.4+
RHEL/CentOS Stream/Oracle Linux/Rocky/Alma 9.0+x86_64Community6.0.4+
RHEL/CentOS Stream/Oracle Linux/Rocky/Alma 8.0+x86_64Enterprise
RHEL/CentOS Stream/Oracle Linux/Rocky/Alma 8.0+x86_64Community
RHEL/CentOS/Oracle Linux 7.0+x86_64Enterprise
RHEL/CentOS/Oracle Linux 7.0+x86_64Community
RHEL/CentOS/Oracle Linux 6.2+x86_64Enterprise
RHEL/CentOS/Oracle Linux 6.2+x86_64Community
SLES 15x86_64Enterprise
SLES 15x86_64Community
SLES 12x86_64Enterprise
SLES 12x86_64Community
Ubuntu 22.04x86_64Enterprise6.0.4+
Ubuntu 22.04x86_64Community6.0.4+
Ubuntu 20.04x86_64Enterprise
Ubuntu 20.04x86_64Community
Ubuntu 18.04x86_64Enterprise
Ubuntu 18.04x86_64Community
Ubuntu 16.04x86_64Enterprise
Ubuntu 16.04x86_64Community
Windows 11x86_64Enterprise
Windows 11x86_64Community
Windows Server 2022x86_64Enterprise
Windows Server 2022x86_64Community
Windows Server 2019x86_64Enterprise
Windows Server 2019x86_64Community
Windows 7/8/8.1x86_64Enterprise
Windows 7/8/8.1x86_64Community
Windows Server 2008R2/2012/2012R2x86_64Enterprise
Windows Server 2008R2/2012/2012R2x86_64Community
Windows 10 / Server 2016x86_64Enterprise
Windows 10 / Server 2016x86_64Community
macOS 13x86_64Enterprise
macOS 13x86_64Community
macOS 12x86_64Enterprise
macOS 12x86_64Community
macOS 11x86_64Enterprise
macOS 11x86_64Community
macOS 10.15x86_64Enterprise
macOS 10.15x86_64Community
macOS 10.14x86_64Enterprise
macOS 10.14x86_64Community
macOS 10.13x86_64Enterprise
macOS 10.13x86_64Community
macOS 13arm64Enterprise
macOS 13arm64Community
macOS 12arm64Enterprise
macOS 12arm64Community
macOS 11arm64Enterprise
macOS 11arm64Community
Amazon Linux 2023arm64Enterprise6.2.0+
Amazon Linux 2023arm64Community6.2.0+
Amazon Linux 2arm64Enterprise4.4.4+
Amazon Linux 2arm64Community4.4.4+
RHEL/CentOS/Rocky/Alma 9arm64Enterprise
RHEL/CentOS/Rocky/Alma 9arm64Community
RHEL/CentOS/Rocky/Alma 8arm64Enterprise4.4.4+
RHEL/CentOS/Rocky/Alma 8arm64Community4.4.4+
Ubuntu 22.04arm64Enterprise6.0.4+
Ubuntu 22.04arm64Community6.0.4+
Ubuntu 20.04arm64Enterprise
Ubuntu 20.04arm64Community
Ubuntu 18.04arm64Enterprise
Ubuntu 18.04arm64Community
Ubuntu 16.04arm64Enterprise
Ubuntu 16.04arm64Community
RHEL/CentOS Stream/Rocky/Alma 9ppc64leEnterprise
RHEL/CentOS Stream/Rocky/Alma 8ppc64leEnterprise
RHEL/CentOS 7ppc64leEnterprise6.0.7+
Ubuntu 18.04ppc64leEnterprise4.4.0 - 4.4.10
RHEL/CentOS Stream/Rocky/Alma 9s390xEnterprise
RHEL/CentOS Stream/Rocky/Alma 9s390xCommunity
RHEL/CentOS Stream/Rocky/Alma 8s390xEnterprise5.0.9+
RHEL/CentOS Stream/Rocky/Alma 8s390xCommunity
RHEL/CentOS 7s390xEnterprise
RHEL/CentOS 7s390xCommunity
RHEL/CentOS 6s390xEnterprise
RHEL/CentOS 6s390xCommunity
SLES 12s390xEnterprise4.4.0 - 4.4.6
SLES 12s390xCommunity4.4.0 - 4.4.6
Ubuntu 18.04s390xEnterprise4.4.0 - 4.4.6
Ubuntu 18.04s390xCommunity4.4.0 - 4.4.6
[1] MongoDB only supports Oracle Linux running the Red Hat Compatible Kernel (RHCK). MongoDB does not support the Unbreakable Enterprise Kernel (UEK).MongoDB仅支持运行Red Hat Compatible Kernel(RHCK)的Oracle Linux。MongoDB不支持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.为RHEL 8.0+版发布的MongoDB内部部署产品与Rocky Linux 8.0+版和AlmaLinux 8.0+版本兼容并受其支持,这取决于这些发行版是否履行了提供完全RHEL兼容性的义务。
[3] MongoDB versions 5.0 and greater are tested against SLES 12 service pack 5. Earlier versions of MongoDB are tested against SLES 12 with no service pack.MongoDB 5.0及更高版本针对SLES 12 service pack 5进行了测试。MongoDB的早期版本是针对没有service pack的SLES 12进行测试的。
[4] MongoDB versions 7.0 and later are tested against SLES 15 service pack 4. Earlier versions of MongoDB are tested against SLES 15 with no service pack.MongoDB 7.0及更高版本针对SLES 15 service pack 4进行了测试。MongoDB的早期版本是在没有service pack的情况下针对SLES 15进行测试的。
[5] MongoDB version 7.0 is built and tested against RHEL 7.9. Earlier versions of MongoDB are tested against RHEL 7 and assume forward compatibility.MongoDB 7.0版是针对RHEL 7.9构建和测试的。MongoDB的早期版本针对RHEL7进行了测试,并假定具有前向兼容性。