1,mac安装homebrew,注意不能用root权限安装
#ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2,在github注册一个账号,https://github.com/settings/applications#personal-access-tokens 创建一个token
3,在#cd ~/
#vi .bash_profile
输入内容:
if [ -f /usr/local/bin/brew ]; then
export HOMEBREW_GITHUB_API_TOKEN=xxxxxxxxxx
fi 4,#. ~/.bash_profile 5, # brew search php54-
6,#brew install
,