mac 用brew 安装php及其扩展

  1. curl -O curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb
  2. mv php.rb `brew --prefix`/Library/Formula

1、brew search php

2、brew options php

3、brew install mysql php --with-fpm --with-mysql

相关推荐