当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Linux操作系统提高PHP性能的工具APC

Unix/Linux
Linux 网管 123 --- 第6章. 一般系统管理问题 -3.变更使用者密码
Linux 网管 123 --- 第6章. 一般系统管理问题 -4.关闭删除使用者帐号
Linux 网管 123 --- 第6章. 一般系统管理问题 -5.Linux 密码及 S
Linux 网管 123 --- 第6章. 一般系统管理问题 -6.关闭系统及重新启动
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -1.HTTP
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -2.DNS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -3.使用 TACACS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -4.使用 Samba
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -5.使用 Netata
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -6.NFS
Linux 网管 123 --- 第13章. 其他的问题 2.哪里可以找到帮助
Linux 网管 123 --- 第13章. 其他的问题 3.附带文件的指示
RedHat 6.2 中文显示与输入的设置
RedHat 6.2 中文 TrueType 字体的使用
Linux 网管 123 --- 第13章. 其他的问题 1.系统损毁
Linux系统中网络配置详解
如何配置linux与win2000/NT 双重引导
kernel hacking简单入门
Linux下如何刻录任何文件系统格式的光盘?
编译内核make dep 是啥意思 ?

Unix/Linux 中的 Linux操作系统提高PHP性能的工具APC


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 130 ::
收藏到网摘: n/a

apc 安装下了最新的APC-3.0.18.tgz,解压,进入目录

 

apc下载地址 http://pecl.php.net/package/APC

 

/usr/local/php/bin/phpize (生产configure文件)

 

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

 

Make make.Install

 

cp /usr/local/lib/php/extensions/no-debug-zts-20060613/apc.so /usr/local/lib/php/extensions/apc.so

 

chmod 755 /usr/local/lib/php/extensions/apc.so

 

配置/etc/php.ini 末尾加入

 

extension=apc.so

 

apc.enabled = 1

 

apc.cache_by_default = on

 

apc.shm_segments = 1

 

apc.shm_size = 128

 

apc.ttl = 7200

 

apc.user_ttl = 7200

 

apc.num_files_hint = 1024

 

apc.write_lock = On

 

apc.gc_ttl=3600

 

apc.ttl=0

 

apc.mmap_file_mask=/tmp/apc.XXXXXX

 

重启apache