memcache安装
2015-08-12 13:18
549 查看
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=/usr
make
make 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=/usr
make
make install
安装Memcache的PHP扩展
pecl install memcache
Build process completed successfully
Installing '/usr/lib64/php/modules/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
编辑php配置文件
vi /etc/php.ini
extension_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
本文出自 “linux&云计算” 博客,请务必保留此出处http://czbinghe.blog.51cto.com/9824423/1683966
wget http://www.monkey.org/~provos/libevent-1.2.tar.gz
tar zxvf libevent-1.2.tar.gz
cd libevent-1.2
./configure --prefix=/usr
make
make 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=/usr
make
make install
安装Memcache的PHP扩展
pecl install memcache
Build process completed successfully
Installing '/usr/lib64/php/modules/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
编辑php配置文件
vi /etc/php.ini
extension_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
本文出自 “linux&云计算” 博客,请务必保留此出处http://czbinghe.blog.51cto.com/9824423/1683966
相关文章推荐
- Linux下memcache的安装和启动
- memcached windows/linux 安装和启动
- Memcache内存分配策略
- 如何选择redis和memcache
- Memcached真的过时了吗?
- memcached安装及java应用使用memcached
- java使用memcached2--集群部署
- Memcached分布式算法详解
- memcache
- java使用memcached1--安装与基本使用
- memcached学习总结
- 在Linux上安装Memcached服务
- java Memcache使用详解
- 64位window下安装memcache扩展
- Memcache与Redis
- windows下memcached的安装与使用
- ehcache memcache redis 三大缓存男高音
- memcached并发CAS模式
- Redis使用总结之与Memcached异同
- redis和memcached相关