WDCP 安装 最新mcached


先安装sasl
yum install cyrus-sasl-plain cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib
yum install gcc+ gcc-c++





#先安装libmemcached
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 --enable-sasl

make

make install




yum install zlib-devel

wget http://pecl.php.net/get/memcached-2.2.0.tgz

tar zxvf memcached-2.2.0.tgz

cd memcached-2.2.0

/www/wdlinux/php/bin/phpize

./configure -with-libmemcached-dir=/usr/local/libmemcached -enable-memcached-sasl --with-php-config=/www/wdlinux/apache_php-5.4.26/bin/php-config

#--with-php-config php-config文件目录, 在bin下面
make

make install




#最后在php.ini中加入
[memcached]
extension=memcached.so



#开启session缓存
session.save_handler = memcached
session.save_path = "host"
extension=memcached.so
memcached.use_sasl = On
memcached.sess_binary = On
memcached.sess_sasl_username = "username"
memcached.sess_sasl_password = "password"
memcached.sess_locking = Off
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值