{"id":296,"date":"2013-03-17T22:09:02","date_gmt":"2013-03-17T14:09:02","guid":{"rendered":"http:\/\/www.shuran.cn\/?p=296"},"modified":"2013-03-17T22:09:02","modified_gmt":"2013-03-17T14:09:02","slug":"%e9%98%bf%e9%87%8c%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8-%e5%ae%89%e8%a3%85-nginxphpmysql-%e7%ac%ac%e4%b8%89%e6%ad%a5%e6%90%9e%e5%ae%9azend%ef%bc%8c%e8%ae%a9php5-3%e6%88%96","status":"publish","type":"post","link":"https:\/\/www.shuran.cn\/?p=296","title":{"rendered":"\u963f\u91cc\u4e91\u670d\u52a1\u5668 \u5b89\u88c5 nginx+php+mysql\u2014\u2014\u2014-\u7b2c\u4e09\u6b65\u641e\u5b9azend\uff0c\u8ba9php5.3\u6216\u80055.4\u652f\u6301zend"},"content":{"rendered":"<p>\u9996\u5148\u5c1d\u8bd5\u4e0b\u8f7d\u5404\u79cd\u7248\u672czend\uff0c\u52a0\u8f7d\u5747\u5931\u8d25\uff0c\u65e0\u804agoogle, \u53d1\u73b0 zend optimizer + \u5f00\u6e90\uff0c\u652f\u6301php5.3,php5.4,php5.5\u4e8e\u662f\u627e\u4e4b\uff0c<\/p>\n<p>\u641c\u7d22\u00a0ZendOptimizerPlus\uff0c<\/p>\n<p><a href=\"https:\/\/github.com\/zend-dev\/ZendOptimizerPlus\/zipball\/master\">https:\/\/github.com\/zend-dev\/ZendOptimizerPlus\/zipball\/master<\/a><\/p>\n<p>\u4e0b\u8f7d\u540e\u67e5\u770b\u5305\u4e2dreadme\u6587\u6863\uff0c<\/p>\n<blockquote><p>This version of Zend Optimizer+ is compatible with PHP 5.2.*, 5.3.*, 5.4.*<br \/>\nand PHP-5.5 development branch. PHP 5.2 support may be removed in the future.<\/p><\/blockquote>\n<p>\u597d\u6d88\u606f\u554a\uff0c\u5f00\u59cb\u6309\u7167\u6587\u6863\u8bf4\u660e\u7f16\u8bd1\u5b89\u88c5<\/p>\n<blockquote><p>wget https:\/\/nodeload.github.com\/zend-dev\/ZendOptimizerPlus\/legacy.zip\/master<br \/>\ntar -zxvf master<br \/>\ncd zend-dev-ZendOptimizerPlus-aee1975<\/p>\n<p>\/mnt\/web\/php\/bin\/phpize<\/p><\/blockquote>\n<p>\u62a5\u9519\u5982\u4e0b<\/p>\n<blockquote><p>Configuring for:<br \/>\nPHP Api Version: 20041225<br \/>\nZend Module Api No: 20060613<br \/>\nZend Extension Api No: 220060519<br \/>\nCannot find autoconf. Please check your autoconf installation and the<br \/>\n$PHP_AUTOCONF environment variable. Then, rerun this script.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u7ecf\u67e5\uff0c\u9700\u8981\u4ee5\u4e0b<br \/>\nyum -y install autoconf<\/p>\n<p>\u540c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u5b89\u88c5m4\u5305\uff0c\u9700\u8981\u518d\u6b21\u8fd0\u884c<\/p>\n<p>yum install m4<br \/>\n\u518d\u6b21\u8fd0\u884c<\/p>\n<blockquote><p>\/mnt\/web\/php\/bin\/phpize<\/p><\/blockquote>\n<p>\u7f16\u8bd1<\/p>\n<blockquote><p>.\/configure --with-php-config=\/mnt\/web\/php\/bin\/php-config<br \/>\nmake<br \/>\nmake install<\/p><\/blockquote>\n<p>\u627e\u5230\u8fd9\u4e2a\u6587\u4ef6opcache.so<br \/>\nfind \/ -name opcache.so<br \/>\n\u5728\u8fd9\u4e2a\u8def\u5f84\u4e2d \/mnt\/web\/php\/lib\/php\/extensions\/no-debug-non-zts-20090626\/opcache.so<br \/>\n\u7f16\u8f91php.ini<\/p>\n<p>\u589e\u52a0\u5982\u4e0b\u5185\u5bb9<\/p>\n<blockquote><p>zend_extension=\/mnt\/web\/php\/lib\/php\/extensions\/no-debug-non-zts-20090626\/opcache.so<br \/>\nopcache.memory_consumption=128<br \/>\nopcache.interned_strings_buffer=8<br \/>\nopcache.max_accelerated_files=4000<br \/>\nopcache.revalidate_freq=60<br \/>\nopcache.fast_shutdown=1<br \/>\nopcache.enable_cli=1<\/p><\/blockquote>\n<p>\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u542f\u52a8php-fpm<\/p>\n<p>\u8fd0\u884cphpinfo();<\/p>\n<p>with Zend Optimizer+ v7.0.1-dev, Copyright (c) 1999-2013, by Zend Technologies<\/p>\n<p>&nbsp;<\/p>\n<p>\u81f3\u6b64\uff0czend\u6dfb\u52a0\u5b8c\u6bd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u5c1d\u8bd5\u4e0b\u8f7d\u5404\u79cd\u7248\u672czend\uff0c\u52a0\u8f7d\u5747\u5931\u8d25\uff0c\u65e0\u804agoogle, \u53d1\u73b0 zend optimizer + \u5f00\u6e90\uff0c\u652f\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.shuran.cn\/?p=296\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":1,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}