APCµÄ½eÉÜ
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
APC¹Ù*½ÍøÕ¾:http://www.php.net/manual/en/book.apc.php
WINÏÂ×iаae±¾µÄÏÂÔصØÖ*:http://downloads.php.net/pierre/
ÏÂÔØÁ¬½Ó:http://downloads.php.net/pierre/php_apc-3.1.4-5.3-VC6-x86.zip ¸u¾Ý×Ô¼ºµÄPHP±aÒe°ae±¾Ê¹ÓÃÏa¶ÔÓ¦µÄDLL
APCÅaÖÃ
APCÅaÖÃÖ÷Òª½²½aÔÚWINϵÄÅaÖÃ,ÀalinuxϵÄÅaÖÃÍøÉÏÎÄÕ±Ƚ϶a
1.ÏÂÔØphp_apc.dll µ½PHPµÄextĿ¼ÏÂ
2.ÐÞ¸Äphp.ini Ìi¼Óextension=php_apc.dll
ÔÚphp.iniβ²¿Ìi¼ÓÅaÖÃÏi
; APC Setting
[APC]
;¿ªÆostat»a±¨´i
;apc.stat=0
apc.enabled=¡±1¡a
apc.shm_segments=¡±1¡a
;ÕaÀiµÄÎÊÌa,ÕaÀiÐÞ¸ÄÁËĬÈÏÄÚ´aeÅaÖÃWIN7ϳo´i,²»ÖªµÀ´o¼ÒÓoµ½Ã»µÄ?
;apc.shm_size=¡±128¡a
; apc.ttl=7200
; apc.user_ttl=7200
; ÐÞÕý…¢"µ
apc.ttl=¡±300¡a
apc.user_ttl=¡±300¡a
apc.num_files_hint=¡±1024¡a
apc.mmap_file_mask=¡±E:/Wamp/tmp/apc.XXXXXX¡±
apc.enable_cli=¡±1¡a
3.ÖØÐÂÆo¶¯apacheþÎñÆ÷,²e¿´phpinfoÖÐÊÇñÓÐapcµÄÅaÖÃÏiÄ¿,ÓеĻ°¾ÍÅaÖóɹ¦ÁË.
APC¿ØÖÆÃae°a,¿ØÖÆÎļþÀ´×ÔAPC-3.1.4.tgz
δʹÓûº´ae֮ǰ
ʹÓûº´aeºo
³£¼uÎÊÌa:
1.ÔÚfcgiϵÄOPCodeµÄ»º´aeÇa³ýÎÊÌa?