欢迎光临
我们一直在努力

安装apc

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

赞(0) 打赏
未经允许不得转载:优惠吧 » 安装apc
分享到: 更多 (0)

评论 842

评论前必须登录!