Discourse论坛建设教程

discourse 是一个优秀的论坛平台,建设起来也很方便,跟随曦和一起看看吧!
官方网址: Discourse is the place to build civilized communities | Discourse - Civilized Discussion

项目对配置的要求并不高,只需要 1G内存(+2Gswap)和10GB硬盘。
如果希望长期运营discourse论坛,曦和建议使用的服务器配置为 2C2G,硬盘当然越大越好。

官方给出安装discourse的唯一方式是使用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.

discourse 不可以使用 IP 进行访问,所以你必须使用一个域名。曦和推荐使用雨云的二级域名进行尝试!

:warning: 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!

discourse的安装对邮箱的要求比较苛刻,建议大家阅读官方文档:
官方文档:https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326
曦和这里推荐使用ZOHO,免费版本足够使用了!

那么让我们开始安装吧!

sudo -s
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
chmod 700 containers
./discourse-setup

耐心等待安装,然后按照要求填入域名和邮箱信息:

Hostname for your Discourse? [discourse.example.com]: 
Email address for admin account(s)? [me@example.com,you@example.com]: 
SMTP server address? [smtp.example.com]: 
SMTP port? [587]: 
SMTP user name? [user@example.com]: 
SMTP password? [pa$$word]: 
Let's Encrypt account email? (ENTER to skip) [me@example.com]: 
Optional Maxmind License key () [xxxxxxxxxxxxxxxx]:

填写完成后,等待安装完成即可!如果你需要修改配置文件,请再次运行./discourse-setup,或者编辑 /containers/app.yml 文件。编辑完成后,重新启动:./launcher rebuild app

访问先前设置好的的域名,完成设置即可~

应该是会非常麻烦了,因为技术说除了湖北服务器,邮箱接口都已经封了。

这个端口被封的问题要如何解决?希望在这里 话语论坛,Discourse搭建教程,超级的简单,100%部署成功! - #21,来自 xiasummer 进行进一步讨论。

这个23年9月的

我撤回