从零开始搭建一个功能强大的论坛社区!Discourse
图片[1]-从零开始搭建一个功能强大的论坛社区!Discourse

1.第一步,准备好一台VPS,内存最好别低于 1G,如果没有VPS,可以【点击前往】创建!

2.准备好一个域名,收费免费的都可以,比如我使用子域名:bbs.freedidi.com ,将其解析到VPS的ip地址上;

3.连接VPS,进入终端进行安装,安装命令如下:

sudo apt install docker.io

sudo apt install docker.io sudo apt install git

sudo apt install docker.io
sudo apt install git

安装 Discourse

git clone https://github.com/discourse/discourse_docker.git /var/discourse

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

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 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]:

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]:

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]:
图片[2]-从零开始搭建一个功能强大的论坛社区!Discourse

如果需要修改配置:

只需进入并修改该文件: var/discourse/containers/app.yml

修改后进行重启容器即可:

cd /var/discourse ./launcher destroy app ./launcher start app

cd /var/discourse
./launcher destroy app
./launcher start app
暂无评论

发送评论 编辑评论


				
上一篇
下一篇