linux网站服务及开源论坛Discuz

安装Apache

yum -y install httpd    //安装
systemctl start httpd  //启动
systemctl enable httpd  //开机自启
systemctl stop firewalld     //关闭防火墙
setenforce 0

httpd -v //查看版本

部署论坛系统discuz

sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config 
setenforce 0
systemctl stop firewalld.service 
systemctl disable firewalld.service

安装LAMP

 yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd
 systemctl start httpd mariadb
 systemctl enable httpd mariadb

安装Discuz
1.导入discuz网站源码

wget http://download.comsenz.com/DiscuzX/2.5/Discuz_X2.5_SC_UTF8.zip
mkdir /webroot/discuz    
unzip  Discuz_X3.4_SC_UTF8.zip      //解压
cp -rf upload/* /webroot/discuz/  
chown -R  apache.apache  /webroot/discuz/

2.Apache配置虚拟主机

vim /etc/httpd/conf.d/discuz.conf
<VirtualHost *:80>
   ServerName www.discuz.com
   DocumentRoot /webroot/discuz
</VirtualHost>

<Directory "/webroot/discuz">
   Require all granted
</Directory>
systemctl restart httpd  //重启一下

3.准备数据库

mysql
MariaDB [(none)]> create database discuz ;
exit    //退出

4.安装Discuz
在这里插入图片描述

数据库密码不填
数据库密码不填,下一步安装完成
测试一下

  • 8
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值