一、安装注意事项
(1) 设置环境变量 :echo ‘export LC_ALL=C‘ >> /etc/profile && source /etc/profile
(2) 安装 perl 依赖:yum install -y perl-devel
二、安装 Memcached 客户端
wget -q http://pecl.php.net/get/memcache-2.2.7.tgz
tar zxf memcache-2.2.7.tgz
cd memcache-2.2.7
/usr/local/php/bin/phpize
./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config
make && make install
cd ..
rm -rf memcache-2.2.7*
ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/
时间: 2024-10-12 13:00:50