{"id":339,"date":"2019-12-02T15:21:42","date_gmt":"2019-12-02T07:21:42","guid":{"rendered":"http:\/\/www.luyouli.com\/?p=339"},"modified":"2019-12-06T09:39:10","modified_gmt":"2019-12-06T01:39:10","slug":"%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85-php-7-4","status":"publish","type":"post","link":"https:\/\/www.luyouli.com\/?p=339","title":{"rendered":"\u7f16\u8bd1\u5b89\u88c5 PHP 7.4"},"content":{"rendered":"\n<p>PHP 7.4 \u603b\u7b97\u662f\u5343\u547c\u4e07\u5524SHI\u51fa\u6765\u4e86\uff0c\u8ddd\u79bb\u4e0a\u5230\u7ebf\u4e0a\u73af\u5883\u80af\u5b9a\u662f\u8fd8\u6709\u4e00\u6bb5\u8ddd\u79bb\uff0c\u4f46\u662f\u5c0f\u8303\u56f4\u7684\u6d4b\u8bd5\u8fd8\u662f\u5f88\u5bb9\u6613\u7684<\/p>\n\n\n\n<p>\u6700\u8fd1\u5927\u6279\u91cf\u7684\u4ece\u5b9e\u4f53\u673a\u8fc1\u79fb\u5230kubernetes\uff0c\u6240\u4ee5\u76f4\u63a5\u5728 php 7.3 \u7684\u7f16\u8bd1\u53c2\u6570\u4e0a\u9762\u6539\u4e00\u6539\u53c2\u6570\u76f4\u63a5\u8d77\u4e2a\u5bb9\u5668\u6d4b\u8bd5\u5b89\u88c5\u4e00\u4e0b<\/p>\n\n\n\n<p>\u5728\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\u78b0\u5230\u4e24\u4e2a\u95ee\u9898\uff0c\u5148\u8bf4\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u95ee\u9898\uff0c\u7136\u540e\u518d\u5b8c\u6574\u7684\u7f16\u8bd1<\/p>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p> sqlite3 &gt;= 3.7.4  \u8981\u6c42sqlite\u7248\u672c\u53f7\uff0c\u8fd9\u4e2a\u4e3b\u8981\u662f\u6ca1\u6709devel\u5305\u5bfc\u81f4\u7684<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p># yum install sqlite sqlite-devel<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff1a<\/p>\n\n\n\n<p><code>No package 'oniguruma' found<\/code><\/p>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u5c31\u5f88\u86cb\u75bc\u4e86\uff0c\u7ecf\u8fc7\u5404\u8def\u67e5\u627e\u53d1\u73b0\u8fd9\u662f\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0c\u5f00\u6e90\u5730\u5740\uff1a <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/kkos\/oniguruma\" target=\"_blank\">https:\/\/github.com\/kkos\/oniguruma<\/a>  \u76f4\u63a5\u5b89\u88c5\u4e4b\u5c31\u884c\uff0c\u7b80\u5355\u7c97\u66b4\u6709\u6548<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/o\/oniguruma-5.9.5-3.el7.x86_64.rpm<br> yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/o\/oniguruma-devel-5.9.5-3.el7.x86_64.rpm<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u6e90\u7801\u5305\uff1a<\/p>\n\n\n\n<p>wget https:\/\/www.php.net\/distributions\/php-7.4.0.tar.gz <\/p>\n\n\n\n<p>wget https:\/\/pecl.php.net\/get\/redis-5.1.1.tgz<\/p>\n\n\n\n<p>\u7f16\u8bd1\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>.\/configure &#8211;prefix=\/php\/ &#8211;with-config-file-path=\/php\/etc\/ &#8211;with-mysqli=mysqlnd &#8211;with-pdo-mysql=mysqlnd &#8211;enable-fpm &#8211;enable-static &#8211;enable-inline-optimization &#8211;enable-sockets &#8211;enable-wddx &#8211;enable-zip &#8211;enable-calendar &#8211;enable-bcmath &#8211;enable-soap &#8211;with-zlib &#8211;with-iconv &#8211;with-gd &#8211;with-xmlrpc &#8211;enable-mbstring &#8211;with-curl &#8211;disable-ipv6 &#8211;disable-debug &#8211;disable-maintainer-zts &#8211;disable-fileinfo &#8211;enable-pcntl &#8211;with-openssl &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;enable-opcache &amp;&amp; make -j `grep processor \/proc\/cpuinfo | wc -l` &amp;&amp; make install &amp;&amp; cd \/ &amp;&amp; cd redis-5.1.1 &amp;&amp; \/php\/bin\/phpize &amp;&amp; .\/configure &#8211;with-php-config=\/php\/bin\/php-config &amp;&amp; make &amp;&amp; make install<\/p>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u67e5\u770b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p>\/php\/sbin\/php-fpm -v<\/p>\n\n\n\n<p>PHP 7.4.0 (fpm-fcgi) (built: Dec  2 2019 13:00:31)<br> Copyright (c) The PHP Group<br> Zend Engine v3.4.0, Copyright (c) Zend Technologies<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"343\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2019\/12\/1-1024x343.jpg\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2019\/12\/1-1024x343.jpg 1024w, https:\/\/www.luyouli.com\/wp-content\/uploads\/2019\/12\/1-300x100.jpg 300w, https:\/\/www.luyouli.com\/wp-content\/uploads\/2019\/12\/1-768x257.jpg 768w, https:\/\/www.luyouli.com\/wp-content\/uploads\/2019\/12\/1.jpg 1171w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u521d\u6b65\u641e\u5b9a\u4e86\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u6f2b\u957f\u7684\u7f13\u6162\u7684\u4ee3\u7801\u529f\u80fd\u6d4b\u8bd5\u4e86<\/p>\n\n\n\n<p>\u7279\u522b\u6ce8\u610f\uff1a\u8bb0\u5f97\u6539 php.ini \u91ccphp\u62d3\u5c55\u7684\u7684\u8def\u5f84<\/p>\n\n\n\n<p> \u7279\u522b\u6ce8\u610f\uff1a\u8bb0\u5f97\u6539 php.ini \u91ccphp\u62d3\u5c55\u7684\u7684\u8def\u5f84 <\/p>\n\n\n\n<p> \u7279\u522b\u6ce8\u610f\uff1a\u8bb0\u5f97\u6539 php.ini \u91ccphp\u62d3\u5c55\u7684\u7684\u8def\u5f84 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7.4 \u603b\u7b97\u662f\u5343\u547c\u4e07\u5524SHI\u51fa\u6765\u4e86\uff0c\u8ddd\u79bb\u4e0a\u5230\u7ebf\u4e0a\u73af\u5883\u80af\u5b9a\u662f\u8fd8\u6709\u4e00\u6bb5\u8ddd\u79bb\uff0c\u4f46\u662f\u5c0f\u8303\u56f4\u7684\u6d4b\u8bd5\u8fd8\u662f\u5f88\u5bb9\u6613\u7684  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-php"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"views":6622,"_links":{"self":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":3,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}