centos 配置Memcache,VPS使用,VPS配置,微评马 - VPS主机点评

centos 配置Memcache

admin 发布于 2013-10-15 16:51     评论:0    浏览:4196

wget -c https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz
wget -c http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
yum -y install gcc make
tar -zvxf libevent-2.0.20-stable.tar.gz
cd libevent-2.0.20-stable
make install
cd ..
tar -zvxf memcached-1.4.15.tar.gz
cd memcached-1.4.15
make install
cp -R /usr/local/lib/libevent* /usr/lib64/
yum -y install php-devel
pecl install memcache
Build process completed successfully
Installing ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so’
install ok: channel://pecl.php.net/memcache-2.2.7
configuration option “php_ini” is not set to php.ini location
You should add “extension=memcache.so” to php.ini
/usr/local/bin/memcached -d -m 10 -u root -l -p 11211 -c 256 -P /tmp/memcached.pid

1 顶一下
如果您要进行评论信息,请先 登录 或者 快速注册 。