搭建 Discuz 论坛

  1. 环境:

    CentOS release 6.8 (Final)
    Linux VM_45_133_centos 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  2. 使用 yum 安装 MySQL:

    yum install mysql-server -y
  3. 重启mysql

    service mysqld restart
  4. 配置root密码

    /usr/bin/mysqladmin -u root password '33g1eoac'
  5. 开机启动

    chkconfig mysqld on
  6. 安装 Apache 组件

    yum install httpd -y
    service httpd start
    chkconfig httpd on
  7. 安装php

    yum install php php-fpm php-mysql -y
    service php-fpm start
    chkconfig php-fpm on
  8. 安装Discuz

    wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
    unzip Discuz_X3.2_SC_UTF8.zip
  9. 配置 Discuz
    由于PHP默认访问 /var/www/html/ 文件夹,所以我们需要把upload文件夹里的文件都复制到 /var/www/html/ 文件夹

    cp -rf upload/* /var/www/html/
    chmod -R 777 /var/www/html
    service httpd restart
  1. 访问http:ip

discuz-1.png

  1. 直接下一步

discuz-2.png

  1. 输入mysql的root密码 ,自定义admin的密码

discuz-3.png

  1. 安装完成:

discuz-4.png

discuz-5.png

参考教程:https://cloud.tencent.com/developer/labs/lab/10030


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。

文章标题:搭建 Discuz 论坛

本文作者:wangzhirui

发布时间:2019-08-23, 16:12:55

最后更新:2025-02-27, 02:04:06

原始链接:https://wangzhirui.com/2019/08/23/搭建-Discuz-论坛/

转载请保留原文链接及作者。

目录