{"id":1758,"date":"2019-04-06T09:05:01","date_gmt":"2019-04-06T01:05:01","guid":{"rendered":"http:\/\/www.vmsvr.com\/wordpress\/?p=1758"},"modified":"2019-04-06T09:08:40","modified_gmt":"2019-04-06T01:08:40","slug":"centos-6-7-%e4%b8%8a%e5%ae%89%e8%a3%85-php-7-3","status":"publish","type":"post","link":"https:\/\/www.vmsvr.com\/wordpress\/network\/2019\/04\/06\/1758.html","title":{"rendered":"CentOS 6\/7 \u4e0a\u5b89\u88c5 PHP 7.3"},"content":{"rendered":"\n<p>\u73b0\u5728<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php\" title=\"View all posts in php\" target=\"_blank\">php<\/a><\/span> 5.x\u7cfb\u5217\u6e10\u6e10\u4e0d\u53d7\u652f\u6301\uff0c\u56e0\u6b64\u6253\u7b97\u66f4\u65b0\u81f3\u6700\u65b0\u7248<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php-7-3\" title=\"View all posts in php 7.3\" target=\"_blank\">php 7.3<\/a><\/span>\u3002\u4ee5\u4e0b\u4e3a\u5b89\u88c5<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php-7-3\" title=\"View all posts in php 7.3\" target=\"_blank\">php 7.3<\/a><\/span>\u7684\u4e00\u4e9b\u6307\u4ee4\u3002\u4ee5\u4e0b\u6307\u4ee4\u5747\u5728root\u7528\u6237\u4e0b\u6267\u884c\uff0c\u975eroot\u7528\u6237 \u9700\u8981\u5728\u6307\u4ee4\u524d\u52a0sudo\u3002<\/p>\n\n\n\n<p>1\u3001\u5148\u5b89\u88c5\u5fc5\u5907\u7684epel\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install epel-release -y<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u6216\u8005\u624b\u52a8\u4ece\u5b98\u65b9\u6e90\u4e0b\u8f7d\u5b89\u88c5\ncentos 6\uff1a\n# rpm -ivh http:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-6.noarch.rpm\ncentos 7\n# rpm -ivh http:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\n<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5 REMI \u6e90\uff1a<\/p>\n\n\n\n<p>CentOS 7:<\/p>\n\n\n\n<p>yum install <a href=\"http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\">http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/a>  -y<br \/> <\/p>\n\n\n\n<p>CentOS 6:<\/p>\n\n\n\n<p>yum install <a href=\"http:\/\/rpms.remirepo.net\/enterprise\/remi-release-6.rpm\">http:\/\/rpms.remirepo.net\/enterprise\/remi-release-6.rpm<\/a> -y<\/p>\n\n\n\n<p>\u5b89\u88c5 Yum \u6e90\u7ba1\u7406\u5de5\u5177\uff1a<br \/> yum install  yum-utils -y<\/p>\n\n\n\n<p>\u66ff\u6362\u9ed8\u8ba4<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php\" title=\"View all posts in php\" target=\"_blank\">php<\/a><\/span> \u7248\u672c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum-config-manager --disable remi-<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php\" title=\"View all posts in php\" target=\"_blank\">php<\/a><\/span>53<br \/>yum-config-manager --disable remi-php54<br \/>yum-config-manager --enable remi-<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php7\" title=\"View all posts in php7\" target=\"_blank\">php7<\/a><\/span>3<\/pre>\n\n\n\n<p>\u5b89\u88c5PHP 7.3<\/p>\n\n\n\n<p>yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u5982\u679c\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u6269\u5c55\uff0c\u6267\u884c<br \/>yum install php-xxx\uff08\u6269\u5c55\u540d\uff09<br \/><\/pre>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u6267\u884c\u4e0byum update -y \u66f4\u65b0\u4e0b\u7cfb\u7edf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728php 5.x\u7cfb\u5217\u6e10\u6e10\u4e0d\u53d7\u652f\u6301\uff0c\u56e0\u6b64\u6253\u7b97\u66f4\u65b0\u81f3\u6700\u65b0\u7248php 7.3\u3002\u4ee5\u4e0b\u4e3a\u5b89 &hellip; <a href=\"https:\/\/www.vmsvr.com\/wordpress\/network\/2019\/04\/06\/1758.html\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[1017,1016,120,1015,1014],"class_list":["post-1758","post","type-post","status-publish","format-standard","hentry","category-network","tag-centos-php","tag-centos-php7-3","tag-php","tag-php-7-3","tag-php7"],"views":4666,"_links":{"self":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/1758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1758"}],"version-history":[{"count":0,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/1758\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}