Discuzq!内测阶段,本地下载安装
由于想在线上按照discuzq!进行测试,玩一玩,没想到mysql版本达不到,暂且无法升级,所以线下下载安装
集成环境(PHPStudy(小皮)V8.1)
安装之前请先安装composer
下载discuzq!请查看:https://www.dnspod.cn/promo/discuzq具体要求
安装帮助:https://discuz.chat/docs/install.html
按照下图进行,安装前请配置好PHPStudy(小皮)V8.1,php环境变量
discuzq!本地下载截图
网站->管理>网站首页设置:index.html index.php error/index.html
配置文件(discuzq.com_80.conf):
server { listen 80; server_name discuzq.com; root "G:/phpstudy_pro/WWW/discuz/public"; #PHP-INFO-START PHP引用配置,可以注释或修改 #include enable-php-74.conf; #PHP-INFO-END add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.html index.php index.htm default.php default.htm default.html; location /install { try_files $uri $uri/ /index.php?$query_string; } location /api { try_files $uri $uri/ /index.php?$query_string; } location / { try_files $uri $uri/ /index.html; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php; #一键申请SSL证书验证目录相关设置 location ~ .well-known{ allow all; } location ~ .php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }
本地安装discuzq,输入相关信息进行安装
discuzq!本地安装成功
发表评论 取消回复