-
apt-get
可辅助通过 apt-cache search curl | grep php 查找已支持的插件,然后通过下面apt-get下载安装,例:
apt-get install php5-curl
可具体参考:ubuntu下安装memcache及memcached
-
pecl
PECL 的全称是 The PHP Extension Community Library ,是一个开放的并通过 PEAR(PHP Extension and Application Repository,PHP 扩展和应用仓库)打包格式来打包安装的 PHP扩展库仓库。通过 PEAR 的 Package Manager 的安装管理方式,可以对 PECL 模块进行下载和安装。
pecl install mongodb-1.4.4
可具体参考:ubuntu下安装mongo扩展
-
源码编译安装
git clone https://github.com/phpredis/phpredis.git phpize ./configure make make install
可具体参考:ubuntu下安装redis扩展