最簡單的方法,找到php安裝目錄的peclphp
自動安裝:spa
# /usr/local/php/bin/pecl install apc io
下面按提示一步步完成便可 配置
配置/etc/php.ini 末尾加入extension=apc.so方法