yum install pcre-devel
wget http://pecl.php.net/get/APC-3.1.9.tgz tar zxvf APC-3.1.9.tgz cd APC-3.1.9/ /usr/bin/phpize ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/bin/php-config make make install
php.ini
查找extension_dir = “/usr/lib/php/modules/”
下面添加extension = apc.so
配置php.ini 末尾加入
apc.enabled = 1
apc.cache_by_default = on
apc.shm_segments = 1
apc.shm_size = 128M
apc.ttl = 600
apc.user_ttl = 600
apc.num_files_hint = 0
apc.write_lock = On
评论前必须登录!
注册