MAC OS中使用brew安装php拓展

来源:互联网 发布:高清混合矩阵命令 编辑:程序博客网 时间:2024/06/18 09:44

MAC OS中brew安装的PHP使用brew安装拓展

PHP拓展(可装可不装,brew拓展方便)

MongoDb拓展(前面安装的是数据库)

安装前先search

brew search mongo

PHP56 安装 MongoDb拓展

sphp 56brew install php56-mongo

PHP71 安装 MongoDb拓展

sphp 71brew install php71-mongodb

重启sudo apachectl -k restart ,然后http://localhost查看拓展开启没有

PHP各个版本安装xdebug拓展

PHP56 安装 xdebug拓展

sphp 56brew install php56-xdebug

PHP71 安装 xdebug拓展

sphp 71brew install php71-xdebug

重启sudo apachectl -k restart ,然后http://localhost查看拓展开启没有

PHP安装YAML,symfony框架使用速度提高x5

PHP56 安装 YAML拓展

sphp 56brew install php56-yaml

PHP71 安装 YAML拓展

sphp 71brew install php71-yaml

安装 OPcache and APCu(缓存机制,加快PHP的编译速度)

在PHP56里面安装

$ sphp 56$ brew install php56-opcache$ brew install php56-apcu

在PHP71里面安装

$ sphp 71$ brew install php71-opcache$ brew install php71-apcu

重启sudo apachectl -k restart ,然后http://localhost查看拓展开启没有

原文地址:http://biyongyao.com/archives/166

原创粉丝点击