找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 164|回复: 0

Mac上搭建Discuz论坛

[复制链接]

2万

主题

128

回帖

10万

积分

管理员

积分
105836
发表于 2022-4-10 17:03:59 | 显示全部楼层 |阅读模式 IP:山东省青岛市 移动

登录后更精彩...O(∩_∩)O...

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 mind 于 2022-4-10 17:33 编辑

Mac上搭建Discuz论坛

步骤一:开启apache


第二步:搭建php运行环境
最新版X3.4 Discuz! X3.4 R20220131,PHP最低要求5.3,最高7.4


第三步:安装mysql

或者手动自己安装

mysql官网:https://dev.mysql.com/downloads/mysql
下载文件:mysql-8.0.28-macos11-x86_64.dmg
一直点下一步安装完成。

第四步:安装discuz


下载源码

https://gitee.com/Discuz/DiscuzX/attach_files


https://www.dismall.com/forum-38-1.html



安装
  • 解压到你任意的工作目录下即可
  • 进入upload/install/目录
  • 执行php -S 127.0.0.1:9988命令
  • 在浏览器输入网址:http://127.0.0.1:9988/,就会自动进入安装界面。
1.png
[code] blue@blues-MBP  ~  brew search php
Warning: Calling Cask:SL::Version#before_colon is deprecated! Use Cask:SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5

Warning: Calling Cask:SL::Version#after_colon is deprecated! Use Cask:SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5

Warning: Calling Cask:SL::Version#before_colon is deprecated! Use Cask:SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5

Warning: Calling Cask:SL::Version#after_colon is deprecated! Use Cask:SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5

==> Formulae
brew-php-switcher   php@7.2             phplint             pcp
php ✔               php@7.3             phpmd               pup
php-code-sniffer    php@7.4             phpmyadmin
php-cs-fixer        php@8.0             phpstan
php-cs-fixer@2      phpbrew             phpunit

==> Casks
eclipse-php                              phinze/cask/eclipse-php
phpstorm                                 phinze/cask/phpstorm
blue@blues-MBP  ~  brew install phpmyadmin
Running `brew update --preinstall`...
==> Downloading https://ghcr.io/v2/homebrew/core/phpmyadmin/manifests/5.1.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/phpmyadmin/blobs/sha256:e7f6687
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring phpmyadmin--5.1.3.monterey.bottle.tar.gz
==> Caveats
To enable phpMyAdmin in Apache, add the following to httpd.conf and
restart Apache:
    Alias /phpmyadmin /usr/local/share/phpmyadmin
    <Directory /usr/local/share/phpmyadmin/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        <IfModule mod_authz_core.c>
            Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
            Order allow,deny
            Allow from all
        </IfModule>
    </Directory>
Then open http://localhost/phpmyadmin
The configuration file is /usr/local/etc/phpmyadmin.config.inc.php
==> Summary



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|IOTsec-Zone|在线工具|CTF WiKi|CTF平台汇总|CTF show|ctfhub|棱角安全|rutracker|攻防世界|php手册|peiqi文库|CyberChef|猫捉鱼铃|手机版|小黑屋|cn-sec|分享屋 ( 鲁ICP备2021028754号 )

GMT+8, 2024-5-10 06:30

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表