1.        wget http://pecl.php.net/get/memcache-2.2.5.tgz

2.        gzip -d memcache-2.2.5.tgz

3.        tar xvf memcache-2.2.5.tar

4.        cd memcache-2.2.5

5.        /PHP安装目录/bin/phpize

6.        ./configure--enable-memcache--with-php-config=/PHP安装目录/bin/

php-config --with-zlib-dir

7.        make

8.        make install

9.        提示:Installing shared extensions: /data/apps/php/lib/php/extensions/no-debug-non-zts-*/

10.        vi /PHP安装目录/etc/php.ini

11.        增加行extension=memcache.so