# Sysadmins

**URL:** https://meta.discourse.org/c/wiki/sysadmins/180.md?page=1

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 2

---

## [将SMF2论坛迁移到Discourse](https://meta.discourse.org/t/migrate-an-smf2-forum-to-discourse/90314)

<div class="topic-metadata">

**Author:** [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**回覆:** 101\
**Last updated:** [2025年七月3日 13:32 UTC](https://meta.discourse.org/t/migrate-an-smf2-forum-to-discourse/90314 "2025-07-03T13:32:13Z")

</div>

SMF2 to Discourse - The Ultimate Guide Starting from the idea of creating an up-to-date guide to migrate from SMF2 to Discourse discussed in this excellent thread by @vincentMac and @cmwebdev, I have prepared an ambiti…

---

## [为反向IP查询配置MAXMIND](https://meta.discourse.org/t/configure-maxmind-for-reverse-ip-lookups/173941)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 17\
**Last updated:** [2025年十一月7日 00:40 UTC](https://meta.discourse.org/t/configure-maxmind-for-reverse-ip-lookups/173941 "2025-11-07T00:40:55Z")

</div>

What is MAXMIND and why would I want it? Discourse uses MAXMIND to provide geographical information for reverse IP lookups. Without Maxmind’s database you’ll see something like this: Or perhaps you’ve noticed thi…

---

## [用\`wget\`从电子邮件链接下载备份](https://meta.discourse.org/t/download-a-backup-from-an-email-link-with-wget/170623)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 4\
**Last updated:** [2025年六月23日 11:55 UTC](https://meta.discourse.org/t/download-a-backup-from-an-email-link-with-wget/170623 "2025-06-23T11:55:59Z")

</div>

For a seasoned sysadmin, the favored way of moving large files is a tool like rsync or scp, but sometimes, you don’t have ssh access to the host where you need to retrieve a large backup file. Because backup files conta…

---

## [🇨🇳 Discourse forum activation email issue | Discourse 论坛激活邮件问题](https://meta.discourse.org/t/discourse-forum-activation-email-issue-discourse/246830)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 3\
**Last updated:** [2025年六月14日 15:28 UTC](https://meta.discourse.org/t/discourse-forum-activation-email-issue-discourse/246830 "2025-06-14T15:28:04Z")

</div>

根据 Discourse 的官方推荐，我们使用的是 MailGun 的服务。 在大部分情况下都没有问题，但是在一些特定的邮件地址，例如 iCloud，我们在发送激活邮件的时候有提示为： "message": "5.5.1 Error: need MAIL command - MAIL FROM error: 450 4.1.8 \<bounce+6712f2.21c8873-lucas.hu=@mail.visafn.com\>: Se…

---

## [在 Amazon Web Services (AWS) 上安装 Discourse](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws/37323)

<div class="topic-metadata">

**Author:** [@Frez](https://meta.discourse.org/u/Frez)\
**回覆:** 0\
**Last updated:** [2015年十二月31日 15:09 UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws/37323 "2015-12-31T15:09:21Z")

</div>

:warning: This installation method is not officially endorsed. Use at your own risk. The Discourse team only recommend installation using the official install guide This guide originally included information about c…

---

## [使用 BunnyCDN 设置 BackBlaze S3](https://meta.discourse.org/t/set-up-backblaze-s3-with-bunnycdn/159135)

<div class="topic-metadata">

**Author:** [@Bill](https://meta.discourse.org/u/Bill)\
**回覆:** 34\
**Last updated:** [2025年四月17日 22:47 UTC](https://meta.discourse.org/t/set-up-backblaze-s3-with-bunnycdn/159135 "2025-04-17T22:47:28Z")

</div>

It took me forever to figure out how to do all of this, so I wanted to make this guide to make it easier for people. Serving your images this way is supposed to make your website load faster. My Discourse setup combines …

---

## [🇨🇳 Change the max size of uploads/attachments | Discourse 修改上传附件的大小](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 5\
**Last updated:** [2025年四月17日 02:06 UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317 "2025-04-17T02:06:40Z")

</div>

Discourse 附件上传大小是需要修改配置文件后重启的。 官方的帖子在：Change the maximum attachment/upload size - sysadmin - Discourse Meta 页面中。 默认的上传大小为 10 MB 需要把上面的参数添加到 Discourse 配置文件后重新编译。 修改完成后，进入目录：/var/discourse 然后运行命令： ./launcher rebuil…

---

## [设置图像上传到Google Cloud Storage](https://meta.discourse.org/t/set-up-image-uploads-to-google-cloud-storage/117655)

<div class="topic-metadata">

**Author:** [@P16](https://meta.discourse.org/u/P16)\
**回覆:** 0\
**Last updated:** [2019年五月14日 04:49 UTC](https://meta.discourse.org/t/set-up-image-uploads-to-google-cloud-storage/117655 "2019-05-14T04:49:27Z")

</div>

Do you want to use Google Storage for your image uploads? Here are the steps: Set a default Google project if you don’t have one. Get a developer key. Create a bucket by going here. Enter a unique name and selec…

---

## [Docker 邮件服务器的自托管电子邮件证书续订](https://meta.discourse.org/t/self-hosted-email-certificate-renewal-for-docker-mail-server/357456)

<div class="topic-metadata">

**Author:** [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)\
**回覆:** 2\
**Last updated:** [2025年三月16日 17:29 UTC](https://meta.discourse.org/t/self-hosted-email-certificate-renewal-for-docker-mail-server/357456 "2025-03-16T17:29:42Z")

</div>

这是一个面向其他自托管管理员的操作指南 我自托管在虚拟机专用服务器（Debian）上 我使用 docker-mailserver 为我的 Discourse 实例提供邮件服务器。对于 Discourse 的简单事务性邮件服务器来说，这是一个非常简单的解决方案。它将电子邮件保存在服务器的文件中，不需要数据库。这是一个朴素的解决方案，没有在线界面或任何其他便利设施，只有 postfix、dovecot、fail2ban 和 ClamAV…

---

## [分析后台作业（Sidekiq）中的CPU耗时](https://meta.discourse.org/t/analyze-cpu-time-spent-in-background-jobs-sidekiq/356377)

<div class="topic-metadata">

**Author:** [@thoka](https://meta.discourse.org/u/thoka)\
**回覆:** 0\
**Last updated:** [2025年三月8日 05:56 UTC](https://meta.discourse.org/t/analyze-cpu-time-spent-in-background-jobs-sidekiq/356377 "2025-03-08T05:56:14Z")

</div>

您可以通过 ENV\[\\"DISCOURSE\_LOG\_SIDEKIQ\\"\] 启用 Sidekiq 日志记录，以收集每个作业所花费时间的度量。 作业机制会将度量写入 log/sidekiq.log，格式为 JSON 行，可以通过 jq 轻松进行汇总。 要获取花费时间超过总时间 5% 的作业的总时间和平均时间： sudo apt update && apt install jq -y jq -s ' group\_by(.job\_…

---

## [使用 Nginx Proxy Manager 管理多个 Discourse 站点](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344)

<div class="topic-metadata">

**Author:** [@tophee](https://meta.discourse.org/u/tophee)\
**回覆:** 33\
**Last updated:** [2025年二月23日 10:58 UTC](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344 "2025-02-23T10:58:53Z")

</div>

EDIT: @pfaffman re-wrote this as a standalone topic from what @tophee had written earlier. It’s not yet tested by me, and I’ve moved around Chris’s words, so any mistakes are likely those of @pfaffman. Are there any r…

---

## [设置 Let's Encrypt + 非-www  www](https://meta.discourse.org/t/setup-let-s-encrypt-non-www-www/84840)

<div class="topic-metadata">

**Author:** [@BlackKnob](https://meta.discourse.org/u/BlackKnob)\
**回覆:** 5\
**Last updated:** [2025年二月23日 01:04 UTC](https://meta.discourse.org/t/setup-let-s-encrypt-non-www-www/84840 "2025-02-23T01:04:09Z")

</div>

I finally made it work, and thought to put everything together in case someone needs it. This info is assembled from different topics on this forum. Thanks to @brahn and @techAPJ. This assumes you’ve completed the init…

---

## [将 Invision/IPBoard v4 论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-invision-ipboard-v4-forums-to-discourse/353763)

<div class="topic-metadata">

**Author:** [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)\
**回覆:** 1\
**Last updated:** [2025年二月22日 11:40 UTC](https://meta.discourse.org/t/migrate-invision-ipboard-v4-forums-to-discourse/353763 "2025-02-22T11:40:49Z")

</div>

{}

---

## [在 CloudPanel 上安装 Discourse](https://meta.discourse.org/t/install-discourse-on-cloudpanel/266422)

<div class="topic-metadata">

**Author:** [@denvergeeks](https://meta.discourse.org/u/denvergeeks)\
**回覆:** 36\
**Last updated:** [2025年二月6日 11:03 UTC](https://meta.discourse.org/t/install-discourse-on-cloudpanel/266422 "2025-02-06T11:03:36Z")

</div>

:warning: This installation method is not officially endorsed. Use at your own risk. The Discourse team only recommend installation using the official install guide :information\_source: This is an unsupported insta…

---

## [替换 goo.gl 链接](https://meta.discourse.org/t/replacing-goo-gl-links/347300)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 10\
**Last updated:** [2025年一月31日 23:21 UTC](https://meta.discourse.org/t/replacing-goo-gl-links/347300 "2025-01-31T23:21:26Z")

</div>

goo.gl 即将关闭（请参阅 https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/）。因此，您论坛上包含 goo.gl 链接的帖子将在 2025 年 8 月 25 日之后失效。 我为一位客户开发了这个脚本。它花费的时间远远超过了我向他收取的费用，也远远超过了我愿意承认的时间。 它会查找所有包含 goo…

---

## [将 IPB 3.1 论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-an-ipb-3-1-forum-to-discourse/96609)

<div class="topic-metadata">

**Author:** [@cebe](https://meta.discourse.org/u/cebe)\
**回覆:** 5\
**Last updated:** [2025年一月29日 13:39 UTC](https://meta.discourse.org/t/migrate-an-ipb-3-1-forum-to-discourse/96609 "2025-01-29T13:39:47Z")

</div>

Hi Discourse Community, I want to share my experience with importing an IPB 3.1 Forum into Discourse 2.1, hoping that this will be useful for others. A short summary about the Community: Topic: Yii PHP Framework (cod…

---

## [更改 Docker 存储后端](https://meta.discourse.org/t/change-the-docker-storage-backend/75352)

<div class="topic-metadata">

**Author:** [@tarek](https://meta.discourse.org/u/tarek)\
**回覆:** 4\
**Last updated:** [2024年十月22日 07:57 UTC](https://meta.discourse.org/t/change-the-docker-storage-backend/75352 "2024-10-22T07:57:16Z")

</div>

Hello all, I have been using Docker with the Devicemapper storage driver. After manually editing the launcher script, I finally took the time to convert to Overlay2. Here are the instructions I took to do this. I hope t…

---

## [用于更新Discourses的Ansible剧本](https://meta.discourse.org/t/ansible-playbook-for-updating-discourses/119268)

<div class="topic-metadata">

**Author:** [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**回覆:** 16\
**Last updated:** [2024年十月10日 02:50 UTC](https://meta.discourse.org/t/ansible-playbook-for-updating-discourses/119268 "2024-10-10T02:50:45Z")

</div>

Hi Meta, While there seem to be a few playbooks around for provisioning Discourse, there didn’t seem to be any for doing updates/upgrades, so in response to my own personal need I’ve created one. https://github.com/pac…

---

## [教程：解决Cloudflare SSL "无效的SSL证书" 错误](https://meta.discourse.org/t/tutorial-resolving-cloudflare-ssl-invalid-ssl-certificate-error/325361)

<div class="topic-metadata">

**Author:** [@nwnuyhs](https://meta.discourse.org/u/nwnuyhs)\
**回覆:** 0\
**Last updated:** [2024年九月6日 18:37 UTC](https://meta.discourse.org/t/tutorial-resolving-cloudflare-ssl-invalid-ssl-certificate-error/325361 "2024-09-06T18:37:00Z")

</div>

问题描述 在使用 Cloudflare SSL 保护您的网站时，您可能会遇到以下情况： 访问 example.com 正常 访问 www.example.com 时出现“无效的 SSL 证书”错误 原因分析 此问题通常是由于 Cloudflare SSL 规则配置不正确引起的。 解决方案 要解决此问题，请按照以下步骤更改您的 SSL/TLS 加密模式： 登录您的 Cloudflare 账户 选择您正在处理的域名 转到 SSL…

---

## [解决由 Cloudflare 自动压缩引起的 "SyntaxError: Unexpected identifier #..."](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**回覆:** 0\
**Last updated:** [2024年六月10日 13:14 UTC](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390 "2024-06-10T13:14:05Z")

</div>

Cloudflare 的 ‘自动压缩’ 功能会破坏 Discourse 的最新版本。在浏览器控制台中，您会看到类似以下的错误： Uncaught SyntaxError: Unexpected identifier '#...' Cloudflare 已意识到此问题，并在其仪表板中添加了此消息： \*\*注意：\*\*请注意，此功能可能与某些较新的 CSS 和 JS 语言功能不完全兼容，这可能会影响网站的功能。 不幸的是，尽管存在此…

---

## [在 Azure 上设置 Discourse](https://meta.discourse.org/t/setup-discourse-on-azure/89550)

<div class="topic-metadata">

**Author:** [@blake](https://meta.discourse.org/u/blake)\
**回覆:** 4\
**Last updated:** [2024年八月18日 15:01 UTC](https://meta.discourse.org/t/setup-discourse-on-azure/89550 "2024-08-18T15:01:53Z")

</div>

This guide is for those who are interested in self-hosting a Discourse site in Azure and will walk you through the initial Azure Portal details needed to get your Linux VM created so that you can then follow the regular …

---

## [使用 DreamHost SMTP 发送外发邮件](https://meta.discourse.org/t/use-dreamhost-smtp-for-outgoing-email/44074)

<div class="topic-metadata">

**Author:** [@Scriblet](https://meta.discourse.org/u/Scriblet)\
**回覆:** 7\
**Last updated:** [2024年八月7日 20:54 UTC](https://meta.discourse.org/t/use-dreamhost-smtp-for-outgoing-email/44074 "2024-08-07T20:54:17Z")

</div>

Hi guys, I’m a noob, but I just got Discourse (running on Digital Ocean) to use Dreamhost SMTP for sending mail and what I figured out SHOULD help you guys with things beyond Dreamhost. You got to figure out your homie …

---

## [在 Amazon Web Services (AWS) 上使用 Lightsail、SES 和 Route 53 安装 Discourse](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**回覆:** 4\
**Last updated:** [2024年八月7日 15:41 UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343 "2024-08-07T15:41:41Z")

</div>

:information\_source: 本主题涵盖了如何使用官方安装说明，并使用 AWS 服务作为 DNS 提供商（Route 53）、邮件提供商（SES）和云服务器提供商（Lightsail）来安装 Discourse。 云服务器 Lightsail 1 GB 内存的默认配置对于小型 Discourse 社区来说已经足够。对于大型社区，我们建议使用 2 GB 内存。 ^ $5/月即可获得满足 Discourse 最…

---

## [🇨🇳 How to clear storage space in Discourse | Discourse 清理存储空间的方法](https://meta.discourse.org/t/how-to-clear-storage-space-in-discourse-discourse/246836)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 2\
**Last updated:** [2024年七月29日 07:35 UTC](https://meta.discourse.org/t/how-to-clear-storage-space-in-discourse-discourse/246836 "2024-07-29T07:35:28Z")

</div>

Discourse 使用一段时间以后会发现硬盘空间占用非常多。 主要是因为 Docker Image 的问题，如果升级次数越多，空间占用越多。 运行下面的命令： ./launcher cleanup 能够帮助你清理 Discourse 占用的空间。 如下面代码所示： \[root@WWW discourse\]# ./launcher cleanup WARNING! This will remove all stopped c…

---

## [🇨🇳 How to back up Discourse to S3 | Discourse 如何备份到 S3](https://meta.discourse.org/t/how-to-back-up-discourse-to-s3-discourse-s3/245552)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 8\
**Last updated:** [2024年七月26日 15:47 UTC](https://meta.discourse.org/t/how-to-back-up-discourse-to-s3-discourse-s3/245552 "2024-07-26T15:47:39Z")

</div>

Discourse 与 S3 是对好基友，如果你对 S3 比较熟悉的话，那么对你来说帮助会非常大。 很多人的虚拟主机空间是有限并且资源也是有限的。 使用 S3 进行备份能够更好的利用空间。 你可以按照下面的步骤进行配置： 设置备份频率 进入 admin \> backup，然后设置 backup\_frequency 为 1。这个是参数是表示备份的频率，默认为 7 。 1 表示的是每天进行备份一次。 7 表示的是每 7 天进行备…

---

## [将Phorum论坛迁移到Discourse](https://meta.discourse.org/t/migrate-a-phorum-forum-to-discourse/128814)

<div class="topic-metadata">

**Author:** [@enigmaty](https://meta.discourse.org/u/enigmaty)\
**回覆:** 4\
**Last updated:** [2024年七月11日 13:38 UTC](https://meta.discourse.org/t/migrate-a-phorum-forum-to-discourse/128814 "2024-07-11T13:38:55Z")

</div>

If you have an old Phorum forum and thinking to migrate to Discourse, then this tutorial is for you. The process is straightforward and we will be using the official Phorum Importer script. Let’s get started. On a high …

---

## [🇨🇳 Discourse Official Install Guide | Discourse 云平台安装](https://meta.discourse.org/t/discourse-official-install-guide-discourse/197803)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 10\
**Last updated:** [2024年七月10日 02:24 UTC](https://meta.discourse.org/t/discourse-official-install-guide-discourse/197803 "2024-07-10T02:24:01Z")

</div>

本文档是根据 discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub 页面中的内容进行翻译的。 翻译的原文发布在：Discourse 云平台安装 - Discourse - iSharkFly ， 欢迎参与讨论。 云平台安装 在基于云平台的 Discourse 安装通常不会超过 30 分钟，哪怕你没有任何有关 Rails 或 Linux shell…

---

## [撤销更改时间戳](https://meta.discourse.org/t/undo-change-timestamp/78966)

<div class="topic-metadata">

**Author:** [@yanokwa](https://meta.discourse.org/u/yanokwa)\
**回覆:** 3\
**Last updated:** [2018年一月25日 16:54 UTC](https://meta.discourse.org/t/undo-change-timestamp/78966 "2018-01-25T16:54:06Z")

</div>

One of our mods changed the timestamp as a way to unbump a topic and I wanted to revert that change because. I wrote a rake task that does this. It’s a small thing, but why not share? # /var/www/discourse/lib/tasks/set\_…

---

## [提示：测试入站电子邮件时使用虚假用户帐户](https://meta.discourse.org/t/tip-when-testing-inbound-email-with-fake-user-accounts/288363)

<div class="topic-metadata">

**Author:** [@ToddZ](https://meta.discourse.org/u/ToddZ)\
**回覆:** 1\
**Last updated:** [2024年五月23日 20:35 UTC](https://meta.discourse.org/t/tip-when-testing-inbound-email-with-fake-user-accounts/288363 "2024-05-23T20:35:39Z")

</div>

…记得使用假账户电子邮件地址的别名发送。 我花了令人尴尬的时间来排查入站电子邮件，因为 Discourse 拒绝了我发送的来自假用户的每一封电子邮件回复。几周前我首次测试时，它本来工作得很好…… 我终于意识到，在 Gmail 中，我一直忘记将我的“发件人”地址切换到假 Discourse 账户的别名：my.name+DiscourseTest@gmail.com 拍额头 我有点分心了，因为在“拒绝”列表里显示的错误是 Email…

---

## [为 Docker 容器添加标签](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254)

<div class="topic-metadata">

**Author:** [@Grunskin](https://meta.discourse.org/u/Grunskin)\
**回覆:** 8\
**Last updated:** [2024年五月23日 19:03 UTC](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254 "2024-05-23T19:03:37Z")

</div>

在我写了一篇关于如何为 discourse 容器添加标签的帖子时，我找到了解决方法，所以我想在这里分享一下，以便人们在谷歌搜索时能更容易找到。 我想给我的 discourse 容器添加一个标签，这样 Watchtower 就不会每次都尝试更新它。 我忽略了 launcher 脚本打印的帮助信息，没有注意到 --docker-args。 要添加我想要的标签，我必须使用以下命令启动它： ./launcher start app --…

[上一頁](https://meta.discourse.org/c/wiki/sysadmins/180.md)

[下一頁](https://meta.discourse.org/c/wiki/sysadmins/180.md?page=2)
