安装php-pear
https://github.com/Homebrew/homebrew-php
安装php5/php-cgi
https://github.com/Homebrew/homebrew-php
#按照说明安装完成后,把brew安装的bin加入系统变量即可
echo '/usr/local/bin/' >> /etc/paths
服务启动与重启
sudo nginx -s stop && sudo nginx #nginx重启
mysql.server restart #mysql重启