# Discourse 数据库套接字信息

**URL:** https://meta.discourse.org/t/discourse-database-socket-information/135007
**Category:** Self-hosting
**Created:** [2019年十二月3日 21:42 UTC](https://meta.discourse.org/t/discourse-database-socket-information/135007 "2019-12-03T21:42:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yousefa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yousefa/32/162852_2.png) [@yousefa](https://meta.discourse.org/u/yousefa)
#### Post date: [2019年十二月3日 21:42 UTC](https://meta.discourse.org/t/discourse-database-socket-information/135007/1 "2019-12-03T21:42:11Z")

</div>

当我尝试在 AWS EC2 上部署 Discourse 时，我遇到了一个问题，无法找到应位于 app.yml 中的 **DISCOURSE\_DB\_SOCKET** 信息。有人能告诉我从哪里可以获取 DISCOURSE\_DB\_SOCKET 的信息吗？

```plaintext
DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_NAME: [AWS_POSTGRES_DB_NAME]
DISCOURSE_DB_POOL: 15
DISCOURSE_DB_USERNAME: [AWS_POSTGRES_DB_USERNAME]
DISCOURSE_DB_PASSWORD: [AWS_POSTGRES_DB_PASSWORD]
DISCOURSE_DB_HOST: [AWS_POSTGRES_ENDPOINT]
DISCOURSE_REDIS_HOST: [AWS_REDIS_ENDPOINT]

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年十二月3日 22:03 UTC](https://meta.discourse.org/t/discourse-database-socket-information/135007/2 "2019-12-03T22:03:48Z")

</div>

这将是您想要连接的 PostgreSQL 的 Unix 套接字路径。在大多数情况下，您应该省略它。

---

<div class="post-metadata">

### Author: ![yousefa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yousefa/32/162852_2.png) [@yousefa](https://meta.discourse.org/u/yousefa)
#### Post date: [2019年十二月3日 22:14 UTC](https://meta.discourse.org/t/discourse-database-socket-information/135007/3 "2019-12-03T22:14:17Z")

</div>

但我还是找不到它。它是我在 AWS 账户上创建的 PostgreSQL 吗？如果是，它的路径是什么？

---

<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: [2019年十二月5日 14:40 UTC](https://meta.discourse.org/t/discourse-database-socket-information/135007/4 "2019-12-05T14:40:35Z")

</div>

如果你不知道，可以通过端口直接访问。
