/root/lnmp stop wget http://pecl.php.net/get/APC-3.1.13.tgz tar xf APC-3.1.13.tgz cd APC-3.1.13/ /usr/local/php/bin/phpize ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config --phpfensi.com make make install make 安装成功后.打开php.ini,查找extension_dir 并在下面添加一行extension = “apc.so”然后在最后添加如下代码: