PrestaShop menu with Advanced Parameters expanded and E-mail highlighted
PrestaShop menu with Advanced Parameters expanded and E-mail highlighted
PrestaShop email settings with “Set my own SMTP parameters” selected
PrestaShop email settings with “Set my own SMTP parameters” selected
PrestaShop test email configuration screen with the Send a test email button highlighted
PrestaShop test email configuration screen with the Send a test email button highlighted

开始使用 Discourse VPS 模板。

Discourse 是一个为互联网下一个十年构建的现代、开源讨论平台。它提供一系列功能,包括实时更新、强大的审核工具和灵活的插件系统。Hostinger 上的 Ubuntu 24.04 with Discourse VPS 模板 预装了 Docker 和 Discourse 安装脚本。本指南将引导你通过 SSH 访问 VPS 并完成 Discourse 设置过程。

如果你正在寻找新的 VPS,请务必在此处查看可用选项:Discourse VPS 托管 🚀

通过 SSH 访问你的 VPS

  • 打开你的 终端(如果你在 Windows 上,可使用 PuTTY 等 SSH 客户端)
  • 通过输入以下命令连接到你的 VPS:
ssh root@[your-vps-ip]

[your-vps-ip] 替换为 你的 VPS 实际 IP 地址

更详细的步骤,请查看此指南:如何透过 SSH 连接你的 VPS

运行 Discourse 安装脚本

PrestaShop Contacts tab and edit icon for Customer Service contact highlighted
PrestaShop Contacts tab and edit icon for Customer Service contact highlighted
PrestaShop Stores tab and shop email field for contact details
PrestaShop Stores tab and shop email field for contact details

通过 SSH 登录后,Discourse 安装将自动启动。

脚本会询问你不同的配置详情。按如下方式回答:

  • Discourse 的主机名 – 输入你要用于 Discourse 安装的域名或子域名
  • 管理员账户的邮箱地址 – 提供一个用于 Discourse 管理员账户的邮箱地址
  • SMTP 服务器地址 – 输入 Discourse 将用于发送邮件的 SMTP 服务器地址。如果你尚未在 VPS 上设置邮件服务器,可以考虑 Hostinger Business Email 方案
  • SMTP 用户名 – 提供你的 SMTP 服务器用户名
  • SMTP 密码 – 提供你的 SMTP 服务器密码
  • Let’s Encrypt 邮箱 – 输入用于 Let’s Encrypt SSL 设置和通知的邮箱地址(可选)
  • Maxmind 许可证密钥 – 如果你有用于反向 IP 查询的 Maxmind 许可证密钥(可选),请在此输入

然后脚本将下载并配置必要的组件。这可能需要几分钟。

访问你的 Discourse 安装

安装脚本完成后,打开 Web 浏览器并导航到你在设置期间输入的域名。点击 Register(注册) 按钮:

接下来,按照屏幕上的说明创建管理员账户并完成设置。

配置 Discourse

使用你创建的管理员账户凭据登录 Discourse 管理面板。

通过配置类别、用户权限和站点外观等设置来自定义你的 Discourse 实例。你也可以通过安装 Discourse 社区提供的插件来增强你的 Discourse 实例。

附加提示

  • 务必为你的 Discourse 数据设置定期备份。你可以在管理面板的 Backups 下进行操作
  • 如果你最初未配置 SSL,可以稍后按照 Discourse SSL 指南 中的说明进行
  • 使用 htopdocker stats 等工具监控 Discourse 实例的性能和健康状态

现在你已在 VPS 上部署并配置了 Discourse,你可以利用其强大功能创建一个活跃的社区!

附加资源

来源:Hostinger 官方帮助文档