ºìÁªLinuxÃÅ»§
Linux°ïÖú

Zend Optimizer°²×°

·¢²¼Ê±¼ä:2006-08-25 00:32:33À´Ô´:ºìÁª×÷Õß:pkncoin
°²×°ºÃPHPºó
ÏÂÔÚzend optimizer°²×°
2.6°æ±¾ £¬ °²×°zendÌáʾ³É¹¦ºó
php -v È´¿´²»µ½zend°æ±¾ phpinfo()Ò²ÊÇÒ»ÑùµÄÔ­Òò£ºphp.iniÎļþ·¾¶ÎÊÌâ
½â¾ö·½·¨
php -i | grep php.ini ¾Í¿ÉÒÔÕÒµ½ µ±Ç°phpʹÓõÄphp.iniÎļþ
±ÈÈç ±àÒ밲װʱûÓÐÖ¸¶¨php.ini´æ·Å·¾¶ ÎÒµÄϵͳÖоÍÔÚ /usr/local/libÏÂÃæ

¶øÒ»°ãzendĬÈÏ°²×°ºóÉú³ÉµÄphp.iniÔÚ/etc/Ŀ¼ÏÂÃæ»ò/usr/local/Zend/etc
ÊÖ¶¯Ö¸¶¨phpʹÓÃzend optÉú³ÉµÄphp.ini
php -c /etc/ -v
Èç¹û¿ÉÒÔ¿´µ½zend optÕýÈ·¼ÓÔØ
ÄÇô×ö¸öÁ¬½Ó¾ÍºÃÁË Á¬½Óµ½phpĬÈ϶ÁÈ¡µÄphp.ini·¾¶ÏÂÃæ
±ÈÈç
ln -sf /etc/php.ini /usr/local/lib[root@localhost /]# php -vPHP 4.4.2 (cli) (built: Jan 22 2006 12:59:19)Copyright (c) 1997-2006 The PHP GroupZend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend TechnologiesOk Õý³£ÁË phpinfo()¿´µ½µÄµ±È»Ò²ÊÇÒ»ÑùµÄ

ÓеÄʱºò»¹ÓÐһЩÇé¿öÏ php -i »òphp -v ÔÚ¿ØÖÆ̨Ï¿ÉÒÔ¿´µ½zend opt,
µ«ÊÇ apache Ö´ÐÐphpinfoµÄÊä³öÀïÃæÈ´¿´²»µ½
Ò»°ãÊÇÒòΪ µ÷ÓÃphpµÄʱºòzendÄ£¿é²»ÄܼÓÔØ, ±ÈÈçAS4ÀïÃæ ¾ÍÊÇÕâÑùµÄ
ÒòΪ as4ÏÂÃæĬÈϵÄphp°²×°ºó¶ÁÈ¡¿âÎļþµÄ·¾¶ ÊÇÔÚ/usr/libÏÂÃæ £¬
¶øphp.iniÎļþÖмÓÔØzendÄ£¿éÊÇÔÚzend°²×°Â·¾¶µÄlibĿ¼ÖÐ
±ÈÈç/usr/local/Zend/lib
ÕâʱapacheÔÚÖ´ÐÐphpʱ ²»ÄܼÓÔØzendÄ£¿é ËùÒÔ ÔÚ¿ØÖÆ̨Àïphp -v ¿ÉÒÔÕý³£
µ«ÊÇapache ȴûÓмÓÔØzend¡£ ½â¾ö°ì·¨ ÏÈ°ÑzendÄ£¿écopyµ½
/usr/libÀïÃæ È»ºó¸ÄÒ»ÏÂphp.iniÀïÃæzend¼ÓÔØÄ£¿é²¿·Ö
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ