美文网首页
Discuz论坛步骤

Discuz论坛步骤

作者: 436宿舍 | 来源:发表于2019-11-05 10:23 被阅读0次

    1、安装数据库

    yum -y install mariadb mariadb-server

    2、启动数据库

    systemctl start mariadb

    3、测试数据库

    mysql -uroot -p

    4、安装php环境

    yum install php php-fpm php-mysql -y

    5、启动php环境

    service php-fpm start

    6、下载dis;

    wget  http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

    7、解压zip文件

    8、配置nginx:

    server {

        listen      3339;

        server_name  localhost;

        location / {

            root  /test/upload;

            index  index.php index.html index.htm;

        }

    location /nginx_status {

      stub_status;

    }

    location /php_status {

        fastcgi_pass  127.0.0.1:9000;

        fastcgi_index  index.php;

        fastcgi_param  SCRIPT_FILENAME /test/upload$fastcgi_script_name;

        include        fastcgi_params;

    }

    location ~ \.php$ {

        fastcgi_pass  127.0.0.1:9000;

        fastcgi_index  index.php;

        fastcgi_param  SCRIPT_FILENAME  /test/upload$fastcgi_script_name;

        include        fastcgi_params;

    }

    }

    9、验证nginx配置:

    nginx  -t

    10、重启 (注意端口被占用)

    /usr/sbin/nginx -s reload

    11、打开网址;

    有部分当前状态不可用;

    提示文件不存在,把config文件下目录修改名字就可以;

    12、不可写的问题;

    设置文件的权限 777

    13、如果mysql 链接不上:

    安装yum install php-mysql

    14、设置数据库和管理员信息即可;

    遇到问题记录:

    1、管理员界面提示:Can not write to cache files, please check directory ./data/ and ./data/sysdata/ .

    权限问题,修改:chmod 777 -R data

    2、discuz 版本查看:

    在管理页面可以看到

    3、新版应用中心文章:https://www.dismall.com/thread-957-1-1.html

    相关文章

      网友评论

          本文标题:Discuz论坛步骤

          本文链接:https://www.haomeiwen.com/subject/jiwdbctx.html