linux php7.2安装扩展memcached

wget http://pecl.php.net/get/igbinary-2.0.8.tgz
tar -xzvf igbinary-2.0.8.tgz
 cd igbinary-2.0.8
/usr/local/php7./bin/phpize
./configure --prefix=/usr/local/igbinary-2.0.8 --with-php-config=/usr/local/php7./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..tar.gz
cd libmemcached-1.0.
./configure --prefix=/usr/local/libmemcached --with-memcached
make
make install
wget http://pecl.php.net/get/memcached-3.0.4.tgz
tar -zxvf memcached-3.0..tgz
cd memcached-3.0.
/usr/local/php7./bin/phpize ./configure --with-php-config=/usr/local/php7./bin/php-config --enable-memcached --enable-memcached-json --enable-memcached-igbinary --with-libmemcached-dir=/usr/local/libmemcached make make install php.ini加载 extension=memcached.so 重启php 查看phpinfo()是否已经正常加载memcached
上一篇:ASP.NET中常用重置数据的方法


下一篇:Java 使用流读文本数据时乱码 解决方法