1.安装php
yum install php php-fpm php-mysql -y
启动
service php-fpm start

systemctl start php-fpm

2.解压Discuz_X3.4_SC_UTF8【20191201】.zip并复制到/home/www/discuz/public目录
unzip Discuz_X3.4_SC_UTF8【20191201】.zip
cp -r upload/* /home/www/discuz/public
chmod -R 777 /home/www/discuz/public

3.nginx配置:

http {
include mime.types;
default_type application/octet-stream;
gzip on;
gzip_min_length 1024;
gzip_types text/css application/x-javascript application/vnd.api+json;
gzip_disable “MSIE [1-6].”;
gzip_comp_level 2;

#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';#access_log  logs/access.log  main;sendfile        on;
#tcp_nopush     on;#keepalive_timeout  0;
keepalive_timeout  65;#gzip  on;server {listen       80;server_name  localhost;root   /home/www/discuz/public;index  index.php;#charset koi8-r;#access_log  logs/host.access.log  main;#location / {#    try_files $uri $uri/ /index.php?$query_string;#}location ~ \.php$ {include fastcgi_params;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /home/www/discuz/public$fastcgi_script_name;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}
}# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}# HTTPS server
#
#server {
#    listen       443 ssl;
#    server_name  localhost;#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;#    ssl_session_cache    shared:SSL:1m;
#    ssl_session_timeout  5m;#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers  on;#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

}

4.访问IP/install地址

我同意,下一步。

下一步

下一步

如果数据库服务器端口不是3306那么我们就填ip:端口。

Discuz论坛安装全过程相关推荐

  1. discuz论坛安装流程

    discuz论坛安装流程 作者:蓝眼泪 实验环境:xshell7,xftp7,centos7.9,win7. 本人用LAMP方式安装discuz论坛,并试验成功.原创不易,且行且珍惜.免费分享给大家. ...

  2. dz安装教程php,discuz论坛安装教程 2017最新discuz论坛安装教程

    对于不懂开发的,然而又想要有一个属于自己的论坛,这完全是可以实现的,discuz可以帮助我们,只要懂得怎么安装discuz,是可以运行起来的,下面的教程就是讲解如何安装discuz论坛, ,首先Apa ...

  3. 写一个Linux下搭建Discuz论坛的全过程教程。

    本例使用的Linux系统为:RHEL5.3. 1.[root@linux ~]# mkdir /mnt/cdrom 2.[root@linux ~]# mount /dev/cdrom /mnt/cd ...

  4. 在Discuz论坛安装出现乱码时

    在配置"config.inc.php"文件时需重视的一点就是关于字符集的设定问题.charset 为论坛默认的字符集,您下载了哪个版本的论坛相对应的字符集就是哪个,比如你下载的 D ...

  5. 源码编译安装部署LAMP平台(使用Apache,MySQL与PHP搭建Discuz论坛实例)

    文章目录 一.LAMP平台与编译安装 (一).LAMP平台概述 (二).构建LAMP平台顺序 (二).编译安装的优点 (三).各组件的主要作用 二.部署步骤 (一).编译安装Apache httpd服 ...

  6. 部署并安装Discuz论坛

    本例要求在上一章构建的LAMP服务器上部署并安装Discuz!论坛系统,完成下列任务. 首先,将获取的论坛代码部署到CentOS 7虚拟机,注意其中upload/ 子目录部署为 /var/www/ht ...

  7. Linux安装配置Discuz论坛(centos7)

    本例要求基于Linux主机快速构建LAMP动态网站平台,并启用相关系统服务,完成下列操作: 1)安装LAMP平台各组件 安装好软件httpd.mariadb-server.mariadb.php.ph ...

  8. 转载:linux环境下搭建discuz论坛

    今天写一个Linux下搭建Discuz论坛的全过程教程. 本例使用的Linux系统为:RHEL5.3. 1.[root@linux ~]# mkdir /mnt/cdrom 2.[root@linux ...

  9. Keepalived+HAProxy基于读写分离方式实现discuz论坛

    一.测试环境: centos 6.6:使用8台虚拟机(上图) 分别对它们设置主机名: 主机名 ip地址 软件包 node1 172.16.16.11 keepalived+haproxy node2 ...

最新文章

  1. 生信服务器 | 更改 CentOS/RHEL 6/7 中的时区
  2. Android AOSP基础(五)不会调试系统源码,还搞什么Android?
  3. 80后创业故事之:兄弟散伙,创业失败(转)
  4. android jni 调用java对象_Android NDK开发之Jni调用Java对象
  5. python常用模块-time和datatime
  6. java并发:interrupt进程终止
  7. 1062. 最简分数(20)-PAT乙级真题
  8. Android 自定义AlertDialog(退出提示框)
  9. 视频教程-通俗易懂的JavaScript高级教程(含资料)-JavaScript
  10. PCL RANSAC点云配准
  11. jsp中文乱码现象解决办法
  12. 学习问题:图像内插-最近邻内插法
  13. 使用db1小波做3层小波分解
  14. cmos逻辑门传输延迟时间_MOS管以及简单CMOS逻辑门电路原理图解析
  15. 神级 IDEA 插件,能让你的代码飞起来!
  16. C语言顺序表,合并并排序(代码注释讲解)
  17. 操作系统基础符号与正则符号
  18. ContextCapture Center Update 18
  19. (OJ)Java面向对象-构造方法
  20. 设置LINUX启动时的液晶屏参数

热门文章

  1. 笔试题strcpy写法
  2. 【STC8A8K64S4A12开发板】—小白做GPIO按键实验
  3. Linux多线程服务端编程笔记,陈硕Linux多线程服务端编程读书笔记 —— 第一章 线程安全的对象生命周期管理...
  4. 手把手教你如何查看某条微博的ID
  5. 李航——《统计学习方法》(二)
  6. 关于LM324比较器和跟随器的应用
  7. 使用51单片机自制电子万年历(包含驱动、基本万年历、闹钟、日程、修改时间等)
  8. cmake中add_definitions的用法
  9. Java基础(27)关于字节(符)流的几道题、多级文件的删除与复制
  10. 说说我亲历的京东发展史