discourse论坛搭建教程

您所在的位置:网站首页 搭建邮箱服务器教程 discourse论坛搭建教程

discourse论坛搭建教程

2023-06-15 10:59| 来源: 网络整理| 查看: 265

1.前言

discourse是一个优秀的论坛平台,相较于flarum,它使用的更多。

项目地址:https://github.com/discourse/discourse

官方网址:https://www.discourse.org/

夜梦博客地址:https://tech.yemengstar.com/?p=3628

使用的服务器:https://www.rainyun.com/YeMeng_

2.配置需求

官方给出的配置要求并不高,只需要1G(开启SWAP)即可运行,最少10GB硬盘空间。

这里夜梦使用的配置为2C2G,系统为Ubuntu22.04

3.前期准备3.1官方提示

官方给出的唯一支持的安装方式是docker安装,

The only officially supported installs of Discourse are Docker based. You must have SSH access to a 64-bit Linux server with Docker support. We regret that we cannot support any other methods of installation including cpanel, plesk, webmin, etc.

基础安装: https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md

大型/多服务安装: https://github.com/discourse/discourse_docker

夜梦这里仅演示基础安装的过程。

3.2域名准备

discourse不可以使用IP进行访问,所以你必须使用一个域名。夜梦这里使用namesilo上面注册的域名进行演示。

namesilo:https://www.namesilo.com/

结账时使用优惠码dreamorrow即可减免一美元费用。

3.3邮箱准备

⚠️ Email is CRITICAL for account creation and notifications in Discourse. If you do not properly configure email before bootstrapping YOU WILL HAVE A BROKEN SITE!

对邮箱的要求比较苛刻,建议大家阅读官方文档:

官方文档:https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326

夜梦这里使用的是mailjet:http://mailjet.com/

推荐参考文章:https://meta.discourse.org/t/howto-use-mailjet-as-a-free-smtp-service-for-discourse/206262

4.开始安装

请全程保持root身份!

4.1安装discourse

克隆项目到本地:

4.2编辑配置文件

启动配置工具:

耐心等待安装,然后按照要求依次填入信息:

填写完成后,等待完成即可!

如果你需要修改配置文件,请再次运行./discourse-setup

或者编辑/containers/app.yml文件,编辑完成后,重新启动:./launcher rebuild app

5.进入discourse

访问先前准备的域名,开始设置即可!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3