wdcp php5.4 memcache,wdcp上安装memcache

首先要yum需要的开发包

yum install libevent-devel

1、安装memcached

http://memcached.org/

http://www.memcached.org/files/memcached-1.5.3.tar.gz

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

make

make install

2、编译php的memcache模块

http://pecl.php.net/package/memcache

http://pecl.php.net/get/memcache-2.2.7.tgz

/www/wdlinux/php/bin/phpize

./configure –with-php-config=/www/wdlinux/php/bin/php-config

make

make install

3、设置php配置文件加载memcache模块

/www/wdlinux/php/etc/php.ini

extension_dir = “/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626/”

extension=memcache.so

4、启动memcached服务

/usr/local/memcached/bin/memcached -d -m 1024 -p 11211 -u root

可能会遇到的问题:

checking build system type… Invalid configuration `: machine ` not recognized

解决办法是:

先安装好memcached后,再编译php的memcahe模块

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值