php常用扩展安装

####memcache

wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar xf memcache-2.2.7.tgz
cd memcache-2.2.7
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

####memcached

wget http://pecl.php.net/get/memcached-2.1.0.tgz
tar xf memcached-2.1.0.tgz
cd memcached-2.1.0/
/usr/local/php/bin/phpize
./configure --enable-memcached --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached
make
make install

 

 

###phalcon


下载zip包 https://github.com/phalcon/cphalcon
unzip cphalcon-master.zip
cd /root/cphalcon-master/build/php5/64bits
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

###bcmath(其它扩展主要安装方法)

cd 到扩展目录下进行编译


cd /root/php-xx/ext/bcmath
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

 

posted @ 2018-02-09 16:19  巽逸  阅读(306)  评论(0编辑  收藏  举报