Macbrew卸载php7重新安装php7


查看brew安装过的服务列表
  php git:(stable)brew services list


#查看是否有php71,如果有

  php git:(stable) brew uninstall php71

Uninstalling /usr/local/Cellar/php71/7.1.12_23... (506 files, 47.9MB)


#删除对应的配置文件

  php git:(stable) rm -rf /usr/local/etc/php/71


  php git:(stable) brew doctor


重新安装:

brew install php71  


详细步骤可参考:Mac homebrew 自定义参数安装 php7


本文链接二维码可以保存在本地:保存

| 浏览 (5321) | (0) | (0) | | 2017-12-14 20:15:43 |


相关文章

  1. Mac 终端查看外网IP
  2. 用古诗吵架的小两口
  3. Mac yld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  4. Mac homebrew install php7自定义参数生成libphp7.so
  5. Mac brew安装多个版本PHP
  6. Mac brew Error: Cannot tap homebrew/php: invalid syntax in tap!