标签:bsp dai direct ret amp for evel bin php源码
memcached依赖于libevent,首先安装libevent
官方网站 http://libevent.org/
./configure –prefix=/usr/local/libevent
make && make install
官网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
进入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
标签:bsp dai direct ret amp for evel bin php源码
原文地址:https://www.cnblogs.com/weidaijie/p/9603661.html