$ brew search wget #下载wget
==> Searching local taps...
wget #对应的wget wgetpaste
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
🍺 /usr/local/Cellar/wget/1.19.5: 50 files, 3.7MB #安装成功
$ sudo wget http://cn2.php.net/distributions/php-7.2.6.tar.bz2 #下载最新版php
$ tar -xjf php-7.2.6.tar.bz2 #解压文件
$ cd php-7.2.6 #进入php
$ ./configure --prefix=/Users/admin/bin #编译安装 --prefix 指定安装路径 随意
网友评论