Discuz论坛安装全过程
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论坛安装全过程相关推荐
- discuz论坛安装流程
discuz论坛安装流程 作者:蓝眼泪 实验环境:xshell7,xftp7,centos7.9,win7. 本人用LAMP方式安装discuz论坛,并试验成功.原创不易,且行且珍惜.免费分享给大家. ...
- dz安装教程php,discuz论坛安装教程 2017最新discuz论坛安装教程
对于不懂开发的,然而又想要有一个属于自己的论坛,这完全是可以实现的,discuz可以帮助我们,只要懂得怎么安装discuz,是可以运行起来的,下面的教程就是讲解如何安装discuz论坛, ,首先Apa ...
- 写一个Linux下搭建Discuz论坛的全过程教程。
本例使用的Linux系统为:RHEL5.3. 1.[root@linux ~]# mkdir /mnt/cdrom 2.[root@linux ~]# mount /dev/cdrom /mnt/cd ...
- 在Discuz论坛安装出现乱码时
在配置"config.inc.php"文件时需重视的一点就是关于字符集的设定问题.charset 为论坛默认的字符集,您下载了哪个版本的论坛相对应的字符集就是哪个,比如你下载的 D ...
- 源码编译安装部署LAMP平台(使用Apache,MySQL与PHP搭建Discuz论坛实例)
文章目录 一.LAMP平台与编译安装 (一).LAMP平台概述 (二).构建LAMP平台顺序 (二).编译安装的优点 (三).各组件的主要作用 二.部署步骤 (一).编译安装Apache httpd服 ...
- 部署并安装Discuz论坛
本例要求在上一章构建的LAMP服务器上部署并安装Discuz!论坛系统,完成下列任务. 首先,将获取的论坛代码部署到CentOS 7虚拟机,注意其中upload/ 子目录部署为 /var/www/ht ...
- Linux安装配置Discuz论坛(centos7)
本例要求基于Linux主机快速构建LAMP动态网站平台,并启用相关系统服务,完成下列操作: 1)安装LAMP平台各组件 安装好软件httpd.mariadb-server.mariadb.php.ph ...
- 转载:linux环境下搭建discuz论坛
今天写一个Linux下搭建Discuz论坛的全过程教程. 本例使用的Linux系统为:RHEL5.3. 1.[root@linux ~]# mkdir /mnt/cdrom 2.[root@linux ...
- Keepalived+HAProxy基于读写分离方式实现discuz论坛
一.测试环境: centos 6.6:使用8台虚拟机(上图) 分别对它们设置主机名: 主机名 ip地址 软件包 node1 172.16.16.11 keepalived+haproxy node2 ...
最新文章
- 生信服务器 | 更改 CentOS/RHEL 6/7 中的时区
- Android AOSP基础(五)不会调试系统源码,还搞什么Android?
- 80后创业故事之:兄弟散伙,创业失败(转)
- android jni 调用java对象_Android NDK开发之Jni调用Java对象
- python常用模块-time和datatime
- java并发:interrupt进程终止
- 1062. 最简分数(20)-PAT乙级真题
- Android 自定义AlertDialog(退出提示框)
- 视频教程-通俗易懂的JavaScript高级教程(含资料)-JavaScript
- PCL RANSAC点云配准
- jsp中文乱码现象解决办法
- 学习问题:图像内插-最近邻内插法
- 使用db1小波做3层小波分解
- cmos逻辑门传输延迟时间_MOS管以及简单CMOS逻辑门电路原理图解析
- 神级 IDEA 插件,能让你的代码飞起来!
- C语言顺序表,合并并排序(代码注释讲解)
- 操作系统基础符号与正则符号
- ContextCapture Center Update 18
- (OJ)Java面向对象-构造方法
- 设置LINUX启动时的液晶屏参数