# 尝试安装 apache2

**URL:** https://meta.discourse.org/t/trying-to-install-apache2/152592
**Category:** Self-hosting
**Created:** [2020年五月25日 10:20 UTC](https://meta.discourse.org/t/trying-to-install-apache2/152592 "2020-05-25T10:20:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年五月25日 12:40 UTC](https://meta.discourse.org/t/trying-to-install-apache2/152592/5 "2020-05-25T12:40:40Z")

</div>

> [@nekodroid](#):
>
> 正如标题所说，我已经运行了 `sudo apt install apache2`。

为什么？如果你安装了 Discourse，它已经占用了端口 80 和 443。

请参阅 [如何在已有 Apache 站点的服务器上设置 Discourse](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013)

---

_[View the full topic](https://meta.discourse.org/t/trying-to-install-apache2/152592)._
