php7.0以上添加memcached方法

只需要安装memcached
wget http://pecl.php.net/get/memcached-3.1.5.tgz
yum -y install libmemcached libmemcached-devel
/app/php/bin/phpize
./configure --with-php-config=/app/php/bin/php-config --enable-memcached
make && make install

memcache扩展方法
/app/php/bin/phpize
./configure --with-php-config=/app/php/bin/php-config --enable-memcache
make && make install

再在php.ini最后添加
   extension=memcached.so
   extension=memcache.so


分享到:
关键词:PHP

网友留言(0 条)

发表评论