安装Valet(只需php和mysql,不需要安装Nginx) 安装 Homebrew 使用 Homebrew 安装 PHP mysql 参考 brew安装nmp环境 安装 Composer brew install composer 更新 Composer composer self-update
安装brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 来自:https://brew.sh/index_zh-cn 安装好的目录:/usr/lo
切换到国内源 # 替换brew.git: cd "$(brew --repo)" # 中国科大: git remote set-url origin https://mirrors.ustc.edu.cn/brew.git # 清华大学: git remote set-url origin h