在上一篇文章中,已经介绍了如何在Linux搭建lnmp环境并通过WordPress搭建个人博客网站,接下来介绍如何使用discuz搭建bbs论坛网站
discuz官网:https://www.discuz.net/forum.php
安装git:
[root@linux ~]# yum -y install git
通过git的方式克隆discuz包到本机:
[root@linux ~]# git clone https://gitee.com/ComsenzDiscuz/DiscuzX.git
拷贝discuz包中的upload目录到/data/www/路径下并重命令目录:
[root@linux ~]# cp -r DiscuzX/upload/ /data/www/test.bbs.com
添加nginx虚拟主机配置文件:
[root@linux ~]# cd /etc/nginx/conf.d/
[root@linux conf.d]# cp default.conf bbs.conf
编辑配置文件:
[root@linux conf.d]# vi bbs.conf
修改以下内容