您的位置:首页 > 数据库 > Memcache

memcache安装

2015-10-16 17:06 489 查看
memcache安装:
wget http://www.monkey.org/~provos/libevent-1.2.tar.gz tar zxvf libevent-1.2.tar.gz
cd libevent-1.2
./configure --prefix=/usrmakemake install
wget http://www.danga.com/memcached/dist/memcached-1.2.0.tar.gz tar zxvf memcached-1.2.0.tar.gz
cd memcached-1.2.0
./configure --with-libevent=/usrmakemake install
安装Memcache的PHP扩展pecl install memcache
Build process completed successfullyInstalling '/usr/lib64/php/modules/memcache.so'install ok: channel://pecl.php.net/memcache-2.2.7configuration option "php_ini" is not set to php.ini locationYou should add "extension=memcache.so" to php.ini

编辑php配置文件vi /etc/php.iniextension_dir = "/usr/lib64/php/modules/"extension=memcache.so

ln -s /usr/lib/libevent-1.2.so.1 /usr/lib64/libevent-1.2.so.1
启动memcached/usr/local/bin/memcached -d -m 10 -u root -l 192.168.10.109 -p 12000 -c 256 -P /tmp/memcached.pid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  process option completed