搭建论坛Discuz3.4
1.关闭防火墙与seliunx
关闭防火墙: systemctl stop firewalld
停止防火墙(开机不自启): systemctl disable firewalld
关闭SELinux:
setenforce 0
vim /etc/selinux/config
SELINUX=enforcing替换为SELINUX=disabled
2.安装httpd mariadb php
yum -y install httpd
yum -y install mariadb-server.x86_64
yum -y install php php-mysql
3.下载安装包Discuz_X3.4_SC_GBK_20191201
https://down.chinaz.com/soft/34092.htm
4.上传安装包并解压
cd /var/www/html
unzip Discuz_X3.4_SC_GBK_20191201.zip
chmod -Rf 777 upload/
5.启动httpd和mariadb服务
systemctl start httpd&&systemctl start mariadb
systemctl enable httpd&&systemctl enable mariadb
systemctl status httpd&&systemctl status mariadb
6.访问: http://ip//upload (ip为当前服务器ip地址)
这一步数据库存密码为空,然后设置管理员密码
如果访问不了后台管理界面http://ip/upload/admin.php(ip是你服务器的ip地址)
在本地电脑的host文件中添加服务器IP 和服务器名
7.更改logo路径
var/www/html/upload/static/image/common
参考:https://blog.csdn.net/qq_19731521/article/details/107911747