php安装yaf,memcache,memcached模块

#安装PHP的yaf模块,参考
https://www.cnblogs.com/shifu204/p/6743578.html
https://www.cnblogs.com/jiqing9006/p/9646872.html

CentOS 用 PHPize 安装 PHP 扩展出现 Can't find PHP headers in /usr/include/PHP 原因:https://wangzq-PHPer.iteye.com/blog/2297792


#PHP的memcache的扩展
wget http://pecl.PHP.net/get/memcache-2.2.6.tgz
tar xf memcache-2.2.6.tgz 
cd memcache-2.2.6/
PHPize
./configure --with-PHP-config=/usr/bin/PHP-config
make && make install
ls -lrt /usr/lib64/PHP/modules/memcache.so

加入PHP.ini里面
[memcache]
extension="/usr/lib64/PHP/modules/memcache.so"


#PHP的memcached扩展:
cd /usr/local/src
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
make && make install

./configure --with-PHP-config=/usr/bin/PHP-config \
--with-libmemcached-dir=/usr/local/libmemcached --disable-memcached-sasl
make && make install
ll /usr/lib64/PHP/modules/memcached.so

加入PHP.ini里面
[memcached]
extension="memcached.so"


大体流程:
1、wget xx.包
2、PHPize
3、./configure --with-PHP-config=/usr/bin/PHP-config
4、make && make install
5、加入PHP.ini里面

 

 

 

相关文章

前言设计一个缓存系统,不得不要考虑的问题就是:缓存穿透、...
在192.168.80.100要联网关闭防火墙及SElinuxsystemctlstopfi...
Redis与Memcache对比:1.Memcache是一个分布式的内存对象缓存...
安装Mencache:关闭防火墙及SElinuxsystemctl  stop  fi...
#安装php的yaf模块,参考https://www.cnblogs.com/shifu204/...
win10下安装配置apache、php、mysql、redis、memcache资源官...