php apcu 扩展安装

环境

system: CentOS release 6.8 (Final)
php:  v5.3.x

步骤

1. http://pecl.php.net/get/apcu-4.0.11.tgz
2. tar zxvf apcu-4.0.11.tgz
3. cd apcu-4.0.11
4. yum install pcre-devel
5. phpize 
6. ./configure --with-php-config=/usr/bin/php-config
7. make && make install
8. 配置php.ini
extension = apcu.so
apc.enabled= on
apc.shm_size= 64M
apc.enable_cli = on
9. 重启apache服务器或者fpm

你可能感兴趣的:(php apcu 扩展安装)