搭建论坛Discuz3.4

搭建论坛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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值