php使用pecl安装扩展时网络无法连接时的解决方案
比如在安装swoole时sudo pecl install swoole
时,网络长时间卡住.过了一会提示连接失败.
因为pecl 是支持,安装时通过指定链接进行安装的.
所以, 这时候我们可以前往http://pecl.php.net
搜索swoole.直接使用sudo pecl install url
进行安装
比如我的案例:
sudo pecl install http://pecl.php.net/get/swoole-4.4.0.tgz