1.libevent

源码地址:https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

1)  ./configure --prefix=/usr --disable-static

2) make && make install

2.memcached

源码地址: http://www.memcached.org/files/memcached-1.4.24.tar.gz

1) ./configure --prefix=/usr/local/memcached-1.4.24/  --with-libevent=/usr

2) make && make install

3.启动memcahed

/usr/local/memcached-1.4.24/bin/memcached -d -u root -l 127.0.0.1 -p 11211 -m 100 -P /var/run/memcached_11211.pid

-d:  守护进程模式运行

-m: 分配内存

-P: pid文件保存位置

4.终止memcahed

kill cat memcached_11211.pid

5.libmemcached

源码地址: https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
   1) ./configure --prefix=/usr/local/libmemcached-1.0.18

2) make && make install

6.php7版本下安装 php-memcached 扩展

  1) get clone  https://github.com/php-memcached-dev/php-memcached -b php7 php-memcached

  2) tar zxvf  php-memcached

  3) cd php-memcached

  4) phpize

5) ./configure --enable-memcached --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached-1.0.18 --disable-memcached-sasl

6) make && make install

安装成功后,vim php.ini ,添加extension=memcached.so,重启php-fpm。

  

最新文章

  1. SQL位移运算函数
  2. Python描述符(descriptor)解密(转)
  3. js中自定义事件,使用了jQuery
  4. ubuntu 64bit arm-linux-gcc: No such file or directory 解决
  5. android动态调试samli代码(转)
  6. Leetcode: Convert a Number to Hexadecimal
  7. C编码-1
  8. poj2686-Traveling by Stagecoach(状压dp)
  9. mysql 数据库备份,恢复。。。。
  10. css_day6
  11. 格而知之16:我所理解的Block(2)
  12. css实现超出部分用...代替
  13. redis_列表对象
  14. bootstraptable 分页查询
  15. Python之字符串操作
  16. asp.net core 创建允许跨域请求的api, cors.
  17. encodeURI & encodeURIComponent
  18. 2.Handler处理器 和 自定义Opener
  19. docker构建Java环境
  20. 简单使用Google Analytics监控网站浏览行为

热门文章

  1. 微信小程序底部导航栏部署
  2. linux命令之------Less命令
  3. javascript使用history api防止|阻止页面后退
  4. 【luoguP1414]】又是毕业季II
  5. 【转】Java 8新特性(四):新的时间和日期API
  6. python的tecplot模块(tecplot新特性)
  7. hdu5438 Ponds[DFS,STL vector二维数组]
  8. pyqt5设置背景图片出现问题
  9. 关于java nio的channel读写的一个困惑
  10. 范仁义html+css课程---7、表单