linux php5.6 安裝擴展 memcached


wget http://pecl.php.net/get/igbinary-1.1.1.tgz

tar -xzvf igbinary-1.1.1.tgz 

cd igbinary-1.1.1

/usr/local/php5.6/bin/phpize 
 ./configure --with-php-config=/usr/local/php5.6/bin/php-config
make
make install
php.ini加載  extension=igbinary.so


wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar zxvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure --prefix=/usr/local/libmemcached --with-memcached
make
make install



wget http://pecl.php.net/get/memcached-2.2.0.tgz

tar zxvf memcached-2.2.0.tgz

cd memcached-2.2.0

/usr/local/php5.6/bin/phpize 

./configure --with-php-config=/usr/local/php5.6/bin/php-config  --with-libmemcached-dir=/usr/local/libmemcached  --enable-memcached --enable-memcached-json --enable-memcached-igbinary
make
make install
php.ini加載  extension=memcached.so

重啟php 查看phpinfo()是否已經正常加載memcached

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM