搭建 Discuz 论坛

  1. 环境:

    1
    2
    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:

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

    1
    service mysqld restart
  2. 配置root密码

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

    1
    chkconfig mysqld on
  4. 安装 Apache 组件

    1
    2
    3
    yum install httpd -y
    service httpd start
    chkconfig httpd on
  5. 安装php

    1
    2
    3
    yum install php php-fpm php-mysql -y
    service php-fpm start
    chkconfig php-fpm on
  6. 安装Discuz

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

    1
    2
    3
    cp -rf upload/* /var/www/html/
    chmod -R 777 /var/www/html
    service httpd restart
  8. 访问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

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×