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
    原文作者:正义的西瓜
    原文地址: https://www.jianshu.com/p/f4f60000bac7
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞