码迷,mamicode.com
首页 > Web开发 > 详细

php扩展memached安装

时间:2018-09-07 13:50:53      阅读:453      评论:0      收藏:0      [点我收藏+]

标签:bsp   dai   direct   ret   amp   for   evel   bin   php源码   

memcached依赖于libevent,首先安装libevent

官方网站 http://libevent.org/

./configure –prefix=/usr/local/libevent

make && make install

memcached安装

官网http://www.danga.com/memcached/dist

  wget  http://www.danga.com/memcached/dist/memcached-1.0.4.tar.gz

 tar  -zxvf    memcached-1.0.4.tar.gz

官网http://www.danga.com/memcached/dist

  wget  http://www.danga.com/memcached/dist/memcached-1.0.4.tar.gz

 tar  -zxvf    memcached-1.0.4.tar.gz

Cannot find config.m4.
Make sure that you run ‘/usr/bin/phpize‘ in the top level source directory of the module

进入php源码包目录:cd /usr/local/php-5.6.25/ext/openssl

执行命令:  cp ./config0.m4 ./config.m4 即可

[root@weidaijie openssl]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212

./configure --prefix=/usr/local/memcached  --with-libevent=/usr/local/libevent/

make &&make install
上述安装完后会有类似这样的提示:
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-2007xxxx/
把php.ini中的extension_dir = “./”修改为

extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-2007xxxx/”

添加一行来载入memcache扩展:extension=memcache.so

 

 

php扩展memached安装

标签:bsp   dai   direct   ret   amp   for   evel   bin   php源码   

原文地址:https://www.cnblogs.com/weidaijie/p/9603661.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!