# 在Linux上安装MongoDB社区版

这些文档提供了为受支持的Linux系统安装MongoDB社区版的说明。

## 推荐

为了获得最佳的安装体验，MongoDB提供了适用于流行Linux发行版的软件包。这些软件包是运行MongoDB的首选方式。以下指南详细介绍了这些系统的安装过程：

* [在Red Hat上安装](https://docs.mongodb.com/v4.2/tutorial/install-mongodb-on-red-hat/)

  使用`.rpm`软件包在Red Hat企业版和相关Linux系统上安装MongoDB社区版。
* [在Ubuntu上安装](https://docs.mongodb.com/v4.2/tutorial/install-mongodb-on-ubuntu/)

  使用`.deb`软件包在Ubuntu Linux系统上安装MongoDB社区版。
* [在Debian上安装](https://docs.mongodb.com/v4.2/tutorial/install-mongodb-on-debian/)

  使用`.deb` 软件包在Debian系统上安装MongoDB社区版。
* [在SUSE上安装](https://docs.mongodb.com/v4.2/tutorial/install-mongodb-on-suse/)

  使用`.rpm`软件包在SUSE Linux系统上安装MongoDB Community Edition 。
* [在亚马逊上安装](https://docs.mongodb.com/v4.2/tutorial/install-mongodb-on-amazon/)

  使用`.rpm`软件包在Amazon Linux AMI系统上安装MongoDB社区版。

WINDOWS LINUX子系统（WSL）-不支持

MongoDB不支持Linux的Windows子系统（WSL）。

原文链接：<https://docs.mongodb.com/v4.2/administration/install-on-linux/>

译者：小芒果


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mongoing.com/install-mongodb/install-mongodb-community-edition/install-on-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
