linux下安装apc

wget htdtp://pecl.php.net/get/APC

tar zxvf APC-3.1.3p.tgz

cd APC-3.1.3p

/usr/local/php/bin/phpize

./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config

make && make install

接下来找到php.ini

找到extension_dir=''这行

在后面写

extension=apc.so

apc.enabled=1

apc.shm_segments=1

apc.shm_size=128

apc.stat=0

apc.ttl=0

原文地址:https://www.cnblogs.com/wxlf/p/8039273.html