Redhat Php Memcache配置说明
Redhat Php Memcache配置说明
一、软件包
a) libevent-1.4.13-stable.tar.gz
b) libmemcached-0.27.tar.gz
c) memcached-1.4.5.tar.gz
d) memcache-2.2.5.tgz
二、安装步骤
a) Tar zxvf libevent-1.4.13-stable.tar.gz
b) Cd libevent-1.4.13-stable
c) ./configure make make install
d) Cd ../
e) Tar zxvf libmemcached-0.27.tar.gz
f) Cd libmemcached-0.27
g) ./configure make make install
h) Cd ../
i) Tar zxvf memcached-1.4.5.tar.gz
j) Cd memcached-1.4.5
k) ./configure make make intall
l) Cd ../
m) Gzip –d memcache-2.2.5.tgz
n) Tar xvf memcache-2.2.5
o) Cd memcache-2.2.5
p) /usr/local/php/bin/phpize
q) ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config
r) Make make install
s) ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/libevent-1.4.so.2
t) Vi /usr/local/php/lib/php.ini
修改extension_dir=”/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/”
增加extension=memcache.so
u) /usr/local/apache/bin/apachectl –k restart
v) 通过phpinfo()函数可以获取到如下信息
memcache support |
enabled |
Active persistent connections |
0 |
Version |
2.2.5 |
Revision |
$Revision: 1.111 $ |
Directive |
Local Value |
Master Value |
memcache.allow_failover |
1 |
1 |
memcache.chunk_size |
8192 |
8192 |
memcache.default_port |
11211 |
11211 |
memcache.default_timeout_ms |
1000 |
1000 |
memcache.hash_function |
crc32 |
crc32 |
memcache.hash_strategy |
standard |
standard |
memcache.max_failover_attempts |
20 |
20 |
- 共2页:
- 上一页
- 1
- 2
- 下一页
评论暂时关闭