# 确认管理员帐户不起作用

**URL:** <https://meta.discourse.org/t/confirm-administrator-account-not-working/184068>\
**Category:** Support\
**Created:** [2021年三月22日 17:28 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068 "2021-03-22T17:28:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![srb](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srb](https://meta.discourse.org/u/srb)\
**Post date:** [2021年三月22日 17:28 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/1 "2021-03-22T17:28:15Z")

</div>

您好，我试图将用户的权限提升为管理员。我收到的要求“确认管理员账户”的邮件通知所指向的链接似乎是一个损坏的 Discourse 链接。Discourse 显示以下错误：  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/f/2/f24b919f3ed9764911282f2e96ec916c36157f34.png)

---

<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:** [2021年三月22日 18:14 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/2 "2021-03-22T18:14:20Z")

</div>

在点击该链接之前，您需要先登录。

或者，您是否编辑过某个模板，导致链接失效？

---

<div class="post-metadata">

**Author:** ![srb](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srb](https://meta.discourse.org/u/srb)\
**Post date:** [2021年三月22日 18:29 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/3 "2021-03-22T18:29:06Z")

</div>

谢谢，Jay！我在点击链接之前是以管理员身份登录的。你指的是哪个模板，我可能在那里把链接弄坏了？

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2021年三月22日 18:57 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/4 "2021-03-22T18:57:44Z")

</div>

此实例是如何安装的？如何配置？是否使用了子文件夹？

---

<div class="post-metadata">

**Author:** ![srb](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srb](https://meta.discourse.org/u/srb)\
**Post date:** [2021年三月22日 18:59 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/5 "2021-03-22T18:59:42Z")

</div>

你好，Stephen，我按照在 AWS EC2 上安装的说明进行了操作。我没有创建任何子文件夹。

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2021年三月22日 19:03 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/6 "2021-03-22T19:03:25Z")

</div>

你遵循了这些说明吗？

> <https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md>

---

<div class="post-metadata">

**Author:** ![srb](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srb](https://meta.discourse.org/u/srb)\
**Post date:** [2021年三月22日 19:09 UTC](https://meta.discourse.org/t/confirm-administrator-account-not-working/184068/7 "2021-03-22T19:09:49Z")

</div>

Stephen，距离我上次安装已经过去一段时间了。我想我当时是这样操作的：

```plaintext
您的 Discourse 主机名？[discourse.example.com]: 

管理员账户的电子邮件地址？[me@example.com,you@example.com]: 
SMTP 服务器地址？[smtp.example.com]: 
SMTP 端口？[587]: 
SMTP 用户名？[user@example.com]: 
SMTP 密码？[pa$word]: 
Let's Encrypt 账户邮箱？（按回车跳过）[me@example.com]: 

```

这将为您生成一个 `app.yml` 配置文件，然后启动引导过程。引导过程需要 **2-8 分钟** 来设置您的 Discourse。如果您需要在引导后更改这些设置，可以再次运行 `./discourse-setup`（它将重新使用文件中之前的值），或者使用 `nano` 手动编辑 `/containers/app.yml`，然后运行 `./launcher rebuild app`，否则您的更改不会生效。
