Discuz! X3 安装教程

1、安装LNMP环境

参考:https://lnmp.org/install.html

2、安装Discuz! X3

打开Apache的htdocs文件夹
#cd /usr/local/apache/htdocs

下载Discuz
#wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

解压Discuz

# yum install -y unzip zip
#unzip Discuz_X3.2_SC_UTF8.zip

删除不用的文件
#rm -rf readme/ utility/ Discuz_X3.2_SC_UTF8.zip

授权文件夹
chmod -R 777 /usr/local/apache/htdocs/upload

修改Apache的httpd.conf文件
#vi /usr/local/apache/conf/httpd.conf

增加以下配置:


DocumentRoot "/usr/local/apache/htdocs/upload"
ServerName www.test1.com
#ServerAlias www.test2.com
#Errorlog
#Customlog

重启Apache服务
#/usr/local/apache/bin/apachectl -t

 

你可能感兴趣的:(Discuz! X3 安装教程)