{"id":543,"date":"2020-10-10T10:20:57","date_gmt":"2020-10-10T02:20:57","guid":{"rendered":"https:\/\/www.cxybj.com\/?p=543"},"modified":"2020-10-14T16:20:22","modified_gmt":"2020-10-14T08:20:22","slug":"centos7-php7-1%e5%8d%87%e7%ba%a7%e5%88%b0php7-4","status":"publish","type":"post","link":"https:\/\/www.cxybj.com\/?p=543","title":{"rendered":"Centos7 yum php7.1\u5347\u7ea7\u5230PHP7.4"},"content":{"rendered":"\n<p><strong>php -v<br>\u67e5\u770b\u5f53\u524d\u7248\u672c<\/strong><\/p>\n\n\n\n<p>PHP 7.1.33 (cli) (built: Oct 26 2019 10:16:23) ( NTS )<br>Copyright (c) 1997-2018 The PHP Group<br>Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies<br>with Zend OPcache v7.1.33, Copyright (c) 1999-2018, by Zend Technologies<br><br><strong>\u5b89\u88c5Remi\u548cEPEL\u6570\u636e\u6e90\uff08\u4ed3\u5e93\uff09<\/strong><\/p>\n\n\n\n<p>rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm <br>rpm -Uvh https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<br><\/p>\n\n\n\n<p><strong>\u4fee\u6539\/etc\/yum.repos.d\/remi-php74.repo<\/strong><\/p>\n\n\n\n<p>This repository only provides PHP 7.4 and its extensions<\/p>\n\n\n\n<p>NOTICE: common dependencies are in &#8220;remi-safe&#8221;<\/p>\n\n\n\n<p>[remi-php74]<br>name=Remi&#8217;s PHP 7.4 RPM repository for Enterprise Linux 7 &#8211; $basearch<\/p>\n\n\n\n<p>baseurl=http:\/\/rpms.remirepo.net\/enterprise\/7\/php74\/$basearch\/<\/p>\n\n\n\n<p>mirrorlist=https:\/\/rpms.remirepo.net\/enterprise\/7\/php74\/httpsmirror<\/p>\n\n\n\n<p>mirrorlist=http:\/\/cdn.remirepo.net\/enterprise\/7\/php74\/mirror<br><strong><span class=\"has-inline-color has-vivid-red-color\">enabled=1<\/span><\/strong>(\u5c060 \u6539\u6210 1 )<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-remi<\/p>\n\n\n\n<p><strong>\u6267\u884c yum -y upgrade php*  \u5347\u7ea7<\/strong><br>yum -y upgrade php*<\/p>\n\n\n\n<p><strong>\u67e5\u770bphp\u7248\u672c php -v<\/strong><\/p>\n\n\n\n<p>PHP 7.4.11 (cli) (built: Sep 29 2020 10:17:06) ( NTS )<br>Copyright (c) The PHP Group<br>Zend Engine v3.4.0, Copyright (c) Zend Technologies<br>with Zend OPcache v7.4.11, Copyright (c), by Zend Technologies<\/p>\n\n\n\n<p><strong>\u606d\u559c\uff01\u5b8c\u6210\u5347\u7ea7\uff0c\u91cd\u542fapache\u670d\u52a1<\/strong>\uff1a<\/p>\n\n\n\n<p>systemctl restart httpd.service<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>php -v\u67e5\u770b\u5f53\u524d\u7248\u672c PHP 7.1.33 (cli)  &hellip; <a href=\"https:\/\/www.cxybj.com\/?p=543\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/543"}],"collection":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":3,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}