{"id":34543,"date":"2023-11-09T13:38:17","date_gmt":"2024-02-28T01:39:29","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/"},"modified":"2024-05-04T08:14:05","modified_gmt":"2024-05-04T00:14:05","slug":"%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/","title":{"rendered":"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>CentOS7\u7cfb\u7d71\u4e2d\uff0c\u76ee\u524d\u53ef\u4ee5\u9ed8\u8a8d\u5b89\u88dd\u7684PHP\u7248\u672c\u662f5.4.16\uff0c\u622a\u81f32017\u5e7412\u670830\u65e5\u3002<\/p>\n<p>\u7136\u800c\uff0c\u9664\u4e865.4\u7cfb\u7d71\u4ee5\u5916\uff0cPHP\u672c\u8eab\u5df2\u7d93\u67095.6\u7cfb\u7d71\u30017.0\u7cfb\u7d71\u30017.1\u7cfb\u7d71\u30017.2\u7cfb\u7d71\u30017.3\u7cfb\u7d71\u7b49\u591a\u500b\u7248\u672c\u767c\u5e03\uff0c\u4e14\u5728\u904b\u884c\u9700\u6c42\u4e0a\uff0c\u901a\u5e38\u9700\u8981\u4f7f\u75285.5\u7cfb\u7d71\u4ee5\u53ca7.0\u7cfb\u7d71\u4ee5\u4e0a\u7684PHP\u7248\u672c\u3002<\/p>\n<p>\u57fa\u65bc\u9019\u500b\u539f\u56e0\uff0c\u672c\u6b21\u8003\u616e\u5c07CentOS7\u7684PHP\u7248\u672c\u5f9e5.4\u7cfb\u7d71\u5347\u7d1a\u5230\u66f4\u65b0\u7684\u7248\u672c\u3002\u6211\u5728\u7db2\u4e0a\u641c\u5c0b\u4e86\u5f88\u591a\u7db2\u7ad9\u4e26\u53c3\u8003\u4e86\u4e00\u4e9b\u8cc7\u6599\uff0c\u4f46\u9047\u5230\u4e86\u4e00\u4e9b\u56f0\u96e3\uff0c\u56e0\u6b64\u5728\u9019\u88e1\u5c07\u5176\u4f5c\u70ba\u63d0\u9192\u8207\u7d00\u9304\u3002\u4e0b\u9762\u7684\u64cd\u4f5c\u904e\u7a0b\u4ee5\u5347\u7d1a\u52307.1\u7cfb\u7d71\u70ba\u4f8b\u9032\u884c\u8aaa\u660e\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5173\u4e8ePHP\u7684\u6838\u5fc3\u90e8\u5206\uff1a<br \/>\n5.6\u7248\u672c\u7cfb\u5217\u57282018\u5e7412\u670831\u65e5\u540e\uff0c\u5b98\u65b9\u5b89\u5168\u652f\u6301\u5df2\u7ecf\u7ed3\u675f\u3002<br \/>\n7.0\u7248\u672c\u7cfb\u5217\u57282018\u5e7412\u670808\u65e5\u540e\uff0c\u5b98\u65b9\u5b89\u5168\u652f\u6301\u5df2\u7ecf\u7ed3\u675f\u3002<br \/>\n7.1\u7248\u672c\u7cfb\u5217\u57282019\u5e7412\u670801\u65e5\u540e\uff0c\u5b98\u65b9\u5b89\u5168\u652f\u6301\u5df2\u7ecf\u7ed3\u675f\u3002<br \/>\n\u60f3\u8981\u4e86\u89e3\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u94fe\u63a5\uff0c\u67e5\u770bPHP\u652f\u6301\u671f\u9650\u3002<br \/>\nPHP\u53d1\u884c\u65e5\u671f\u548c\u652f\u6301\u671f\u9650 &#8211; Qiita<\/p>\n<h2>\u5347\u7ea7\u524d\u7684\u73af\u5883\u6982\u8ff0<\/h2>\n<p>CentOS\u7248\u672c\uff1aCentOS Linux\u53d1\u5e03\u7248\u672c7.4.1708\uff08\u6838\u5fc3\uff09<br \/>\nApache\u7248\u672c\uff1a\u670d\u52a1\u5668\u7248\u672c\uff1aApache\/2.4.6\uff08CentOS\uff09<br \/>\nMySQL\u7248\u672c\uff1amysql\u7248\u672c15.1\u5206\u53d1\u72485.5.56-MariaDB\uff0c\u7528\u4e8eLinux\uff08x86_64\uff09\uff0c\u4f7f\u7528readline 5.1<br \/>\nPHP\u7248\u672c\uff1aPHP 5.4.16\uff08\u547d\u4ee4\u884c\u754c\u9762\uff09<\/p>\n<h1>\u5347\u7ea7\u6b65\u9aa4<\/h1>\n<h2>\u6dfb\u52a0\u5b58\u50a8\u5e93<\/h2>\n<p>\u7531\u4e8e\u9700\u8981\u4ece\u975e\u6807\u51c6\u5e93\u4e2d\u83b7\u53d6PHP\uff0c\u56e0\u6b64\u9700\u8981\u6dfb\u52a0EPEL\u548cREMI\u5b58\u50a8\u5e93(1)\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u3010EPEL\u4ed3\u5e93\u3011\u3002<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install <\/span>epel-release\r\n<span class=\"c\">#\u307e\u305f\u306f<\/span>\r\nrpm <span class=\"nt\">-Uvh<\/span> https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\r\n<\/code><\/pre>\n<p>\u6267\u884c\u4ee5\u4e0bREMI\u5b58\u50a8\u5e93\u547d\u4ee4<\/p>\n<pre class=\"post-pre\"><code>rpm <span class=\"nt\">-Uvh<\/span> http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm\r\n<\/code><\/pre>\n<h2>\u5220\u9664\u5f53\u524d\u7684PHP\u3002<\/h2>\n<p>\u5728\u5347\u7ea7PHP\u7248\u672c\u65f6\uff0c\u6700\u7ec8\u8fd8\u662f\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u3002\u56e0\u6b64\uff0c\u4e0e\u5176\u8bf4\u662f\u7248\u672c\u5347\u7ea7\u548c\u66f4\u65b0\uff0c\u66f4\u63a5\u8fd1\u4e8e\u91cd\u65b0\u5b89\u88c5\u3002<br \/>\n\u5982\u679c\u5728\/etc\/php.ini\u7b49\u6587\u4ef6\u4e2d\u5bf9PHP\u8fdb\u884c\u4e86\u7279\u6b8a\u8bbe\u7f6e\uff0c\u5efa\u8bae\u901a\u8fc7cp\u547d\u4ee4\u5c06\u5176\u5907\u4efd\u4ee5\u9632\u4e07\u4e00\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cp<\/span> \/etc\/php.ini \/etc\/php.ini.bk\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u8a2d\u7f6e\u6587\u4ef6\u7684\u5099\u4efd\u7b49\u5de5\u4f5c\u5f8c\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>yum remove php-<span class=\"k\">*<\/span>\r\n<\/code><\/pre>\n<p>\u9019\u6a23\u4e00\u4f86\uff0cPHP\u5c31\u6b7b\u4e86\u3002\u3002\u3002\u3002<\/p>\n<h2>\u5b89\u88c5\u6700\u65b0\u7684PHP<\/h2>\n<p>\u5f9e\u9019\u88e1\u958b\u59cb\u5b89\u88dd\u6bd4\u6a19\u6e96\u7248\u672c\u66f4\u65b0\u7684PHP\u7248\u672c\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u4e26\u4e0d\u662f\u6700\u65b0\u7248\u672c\u5c31\u4e00\u5b9a\u597d\uff0c\u8981\u8003\u616e\u5230\u51fd\u6578\u662f\u5426\u6709\u8b8a\u66f4\uff0c\u56e0\u6b64\u53ef\u4ee5\u8003\u616e\u5b89\u88dd 5.6\u30017.0 \u6216 7.1 \u7248\u672c\u3002<br \/>\n\u9078\u5b9a\u7248\u672c\u5f8c\uff0c\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u9032\u884c\u5b89\u88dd\u3002<\/p>\n<p>\u3010\u5982\u679c\u662fPHP5.6.x\u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php56 php\r\n<\/code><\/pre>\n<p>\u3010\u9488\u5bf9 PHP7.0.x \u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php70 php\r\n<\/code><\/pre>\n<p>\u3010\u9488\u5bf9PHP 7.1.x\u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php71 php\r\n<\/code><\/pre>\n<p>\u3010\u5bf9\u4e8ePHP7.2.x\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php72 php\r\n<\/code><\/pre>\n<p>\u3010\u5bf9\u4e8ePHP7.3.x\u7248\u672c\u7684\u60c5\u51b5\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php73 php\r\n<\/code><\/pre>\n<p>\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\uff0c\u7528\u4e2d\u6587\u8868\u8ff0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<p>\u53e6\u5916\uff0c&#8211;disablerepo=* \u662f\u4e00\u4e2a\u5fc5\u8981\u7684\u9009\u9879\uff0c\u5b83\u4f1a\u6682\u65f6\u7981\u7528\u6240\u6709\u4ed3\u5e93\uff0c\u53ea\u4ece remi \u83b7\u53d6 PHP\u3002\u5982\u679c\u6709\u8fd9\u4e2a\u9009\u9879\uff0c\u5c31\u53ef\u4ee5\u987a\u5229\u8fdb\u884c\u7248\u672c\u6307\u5b9a\u3002<br \/>\n\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u5982\u679c\u4e0d\u52a0\u8fd9\u4e2a\u9009\u9879\u8f93\u5165\u547d\u4ee4\uff0c\u65e0\u8bba\u5982\u4f55\u90fd\u4f1a\u6307\u5b9a\u4e3a PHP5.4.x\u7684\u7248\u672c\u3002\u3002\u3002\u52a0\u4e0a\u8fd9\u4e2a\u9009\u9879\u5e94\u8be5\u6ca1\u6709\u4ec0\u4e48\u635f\u5931\u3002(2)<\/p>\n<div>= = = 2019-05-19 \u8ffd\u8a18 = = = =<br \/>\n\u5c3d\u7ba1\u4f7f\u7528\u4e86&#8211;disablerepo=* &#8211;enablerepo=remi,remi-php72\u7b49\u6765\u6307\u5b9a\u4ed3\u5e93\uff0c\u4f46\u5728\u4f9d\u8d56\u5173\u7cfb\u68c0\u67e5\u65f6\u4ecd\u7136\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u542f\u7528\u4ed3\u5e93\u4ee5\u4f7f\u5176\u53ef\u4ee5\u901a\u8fc7epel\u8fdb\u884c\u4f9d\u8d56\u5173\u7cfb\u68c0\u67e5\uff0c\u5e76\u5c1d\u8bd5\u663e\u5f0f\u5730\u4f7f\u7528&#8211;disablerepo=base\u6765\u7981\u7528\u53ea\u542b\u67095.4\u7cfb\u7684base\u4ed3\u5e93\u3002\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<br \/>\nyum install &#8211;disablerepo=base &#8211;enablerepo=epel,remi,remi-safe,remi-php72 php<\/div>\n<h2>\u7ed9 PHP \u73af\u5883\u6dfb\u52a0\u76f8\u5173\u7684\u5305\uff08\u8fd8\u539f\u5230\u539f\u59cb\u7684 PHP \u73af\u5883\uff09\u3002<\/h2>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u7684\u65b9\u6cd5\uff0c\u5df2\u7ecf\u5b89\u88c5\u4e86PHP\u6838\u5fc3\u3002\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u5b89\u88c5\u4e4b\u524d\u4f7f\u7528\u7684\u76f8\u5173\u5305\u5e76\u6062\u590d\u5230\u539f\u6765\u7684\u72b6\u6001\u3002\u867d\u7136\u6ca1\u6709\u7279\u522b\u590d\u6742\u7684\u64cd\u4f5c\uff0c\u4f46\u5728\u5b89\u88c5\u4e0a\u8ff0\u7684PHP\u6838\u5fc3\u65f6\u540c\u65f6\u8fdb\u884c\u4e5f\u662f\u53ef\u4ee5\u7684\u3002<br \/>\n\u4e0b\u9762\u7684\u547d\u4ee4\u5217\u51fa\u4e86\u4e3b\u8981\u7684\u5185\u5bb9\u3002\u53ef\u4ee5\u5220\u9664\u4e0d\u5fc5\u8981\u7684\u5185\u5bb9\uff0c\u6dfb\u52a0\u5fc5\u8981\u7684\u5185\u5bb9\u5e76\u6267\u884c\u3002<\/p>\n<p>\u3010\u5bf9\u4e8ePHP5.6.x\u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php56 php-devel php-pear php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process\r\n<\/code><\/pre>\n<p>\u3010\u5bf9\u4e8ePHP7.0.x\u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php70 php-devel php-pear php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process\r\n<\/code><\/pre>\n<p>\u3010\u5728PHP7.1.x\u7684\u60c5\u51b5\u4e0b\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php71 php-devel php-pear php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process\r\n<\/code><\/pre>\n<p>\u3010\u5728PHP7.2.x\u7248\u672c\u4e2d\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php72 php-devel php-pear php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process\r\n<\/code><\/pre>\n<p>\u3010\u5bf9\u4e8ePHP7.3.x\u7248\u672c\u3011<\/p>\n<pre class=\"post-pre\"><code>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--disablerepo<\/span><span class=\"o\">=<\/span><span class=\"k\">*<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>epel,remi,remi-safe,remi-php73 php-devel php-pear php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process\r\n<\/code><\/pre>\n<h2>\u6062\u590dPHP\u8bbe\u7f6e<\/h2>\n<p>\u5df2\u7ecf\u51c6\u5907\u597d\u4e0a\u8ff0\u6240\u9700\u7684\u96f6\u4ef6\u3002\u6700\u540e\u6062\u590dPHP\u7684\u8bbe\u7f6e\u5e76\u5b8c\u6210\u3002<\/p>\n<div>\u53c2\u7167\u4e8b\u5148\u5907\u4efd\u7684php.ini.bk\u6587\u4ef6\u8fdb\u884c\u6062\u590d\u3002<\/div>\n<pre class=\"post-pre\"><code>vim \/etc\/php.ini\r\n<\/code><\/pre>\n<h1>\u6700\u540e<\/h1>\n<p>\u4ecePHP5.4.x\u5347\u7ea7\u5230\u65b0\u7248\u672c\uff0c\u5b9e\u9645\u4e0a\u53ea\u9700\u91cd\u65b0\u5b89\u88c5\u800c\u5df2\u3002\u6211\u89c9\u5f97\u5bfb\u627e\u76f8\u5e94\u7684\u547d\u4ee4\u5f88\u9ebb\u70e6\u3002<\/p>\n<p>\u6211\u66fe\u53c2\u8003\u4e86\u5176\u4ed6\u5404\u79cd\u7f51\u7ad9\uff0c\u4f46\u53ea\u62bd\u53d6\u4e86\u4e3b\u8981\u7684\u90a3\u4e2a\uff08\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u6392\u540d\u7b2c\u4e00\u7684\u90a3\u4e2a\uff09\u3002\u975e\u5e38\u611f\u8c22\u3002<\/p>\n<p>(1) \u5728CentOS6\uff0fCentOS7\u4e0a\u4f7f\u7528yum\u5b89\u88c5PHP5.6\uff0fPHP7 &#8211; Qiita\u7f51\u7ad9<br \/>\n(2) \u3010CentOS7\u3011\u5c3d\u7ba1\u6307\u5b9a\u4e86enablerepo=remi-php56\uff0c\u4ec5\u4ecebase\u83b7\u53d6PHP5.6\u3010yum\u3011 | \u6211\u8fd9\u6837\u7684\u4eba\u2026.com \u2015 ORENANTE.com \u2015 &#8230; orz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 CentOS7\u7cfb\u7d71\u4e2d\uff0c\u76ee\u524d\u53ef\u4ee5\u9ed8\u8a8d\u5b89\u88dd\u7684PHP\u7248\u672c\u662f5.4.16\uff0c\u622a\u81f32017\u5e7412\u670830\u65e5\u3002 \u7136\u800c\uff0c\u9664 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34543","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06centos7\u4e0a\u7684php\u5347\u7ea7\u52305-6-7-0-7-1-7-2-7-3\u7cfb\u5217\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 CentOS7\u7cfb\u7d71\u4e2d\uff0c\u76ee\u524d\u53ef\u4ee5\u9ed8\u8a8d\u5b89\u88dd\u7684PHP\u7248\u672c\u662f5.4.16\uff0c\u622a\u81f32017\u5e7412\u670830\u65e5\u3002 \u7136\u800c\uff0c\u9664 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06centos7\u4e0a\u7684php\u5347\u7ea7\u52305-6-7-0-7-1-7-2-7-3\u7cfb\u5217\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-28T01:39:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T00:14:05+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/\",\"name\":\"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-28T01:39:29+00:00\",\"dateModified\":\"2024-05-04T00:14:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06centos7\u4e0a\u7684php\u5347\u7ea7\u52305-6-7-0-7-1-7-2-7-3\u7cfb\u5217\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217","og_description":"\u9996\u5148 CentOS7\u7cfb\u7d71\u4e2d\uff0c\u76ee\u524d\u53ef\u4ee5\u9ed8\u8a8d\u5b89\u88dd\u7684PHP\u7248\u672c\u662f5.4.16\uff0c\u622a\u81f32017\u5e7412\u670830\u65e5\u3002 \u7136\u800c\uff0c\u9664 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06centos7\u4e0a\u7684php\u5347\u7ea7\u52305-6-7-0-7-1-7-2-7-3\u7cfb\u5217\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-28T01:39:29+00:00","article_modified_time":"2024-05-04T00:14:05+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/","name":"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-28T01:39:29+00:00","dateModified":"2024-05-04T00:14:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06CentOS7\u4e0a\u7684PHP\u5347\u7ea7\u52305.6\/7.0\/7.1\/7.2\/7.3\u7cfb\u5217"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86centos7%e4%b8%8a%e7%9a%84php%e5%8d%87%e7%ba%a7%e5%88%b05-6-7-0-7-1-7-2-7-3%e7%b3%bb%e5%88%97%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34543"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34543\/revisions"}],"predecessor-version":[{"id":97170,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34543\/revisions\/97170"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}