从零开始搭建一个功能强大的论坛社区!Discourse
发布时间:2024年04月23日
1.第一步,准备好一台VPS,内存最好别低于 1G,如果没有VPS,可以【点击前往】创建!
2.准备好一个域名,收费免费的都可以,比如我使用子域名:bbs.freedidi.com ,将其解析到VPS的ip地址上;
3.连接VPS,进入终端进行安装,安装命令如下:
sudo apt install docker.io
sudo apt install git
sudo apt install docker.io
sudo apt install git
sudo apt install git
sudo apt install docker.io sudo apt install git
安装 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
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
./discourse-setup
./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]:
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]:
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]:
如果需要修改配置:
只需进入并修改该文件: var/discourse/containers/app.yml
修改后进行重启容器即可:
cd /var/discourse
./launcher destroy app
./launcher start app
cd /var/discourse
./launcher destroy app
./launcher start app
./launcher destroy app
./launcher start app
cd /var/discourse ./launcher destroy app ./launcher start app
如果你想要了解关于智能工具类的内容,可以查看 智汇宝库,这是一个提供智能工具的网站。
在这你可以找到各种智能工具的相关信息,了解智能工具的用法以及最新动态。
歌者AI,彩漩PPT推出的一款AI PPT生成工具,基于AI技术,可自动化生成漂亮的PPT文档。