{"id":91,"date":"2019-07-04T07:00:27","date_gmt":"2019-07-04T07:00:27","guid":{"rendered":"http:\/\/blog.caincity.com\/?p=91"},"modified":"2020-03-31T13:41:55","modified_gmt":"2020-03-31T13:41:55","slug":"centos-6-x-php%e7%89%88%e6%9c%ac%e5%8d%87%e7%ba%a7","status":"publish","type":"post","link":"http:\/\/blog.caincity.com\/?p=91","title":{"rendered":"Centos 6.x PHP\u7248\u672c\u5347\u7ea7"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">\u7b2c\u4e00\u8282\uff1a\u67e5\u770b\u5f53\u524dPHP\u7248\u672c<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">php -v<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562221546743.jpg\" alt=\"\" class=\"wp-image-93\" width=\"479\" height=\"69\" srcset=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562221546743.jpg 958w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562221546743-300x43.jpg 300w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562221546743-768x111.jpg 768w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><figcaption>\u672c\u4eba\u5df2\u7ecf\u5347\u7ea7\u52307.1<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e8c\u8282\uff1a\u67e5\u770b\u5df2\u5b89\u88c5\u7684PHP\u76f8\u5173\u5b89\u88c5\u5305<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">yum list installed | grep php<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562222348254.jpg\" alt=\"\" class=\"wp-image-96\" width=\"467\" height=\"280\" srcset=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562222348254.jpg 934w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562222348254-300x180.jpg 300w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/1562222348254-768x460.jpg 768w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><figcaption>\u5efa\u8bae\u5347\u7ea7\u524d\uff0c\u5c3d\u91cf\u5148\u628a\u5b89\u88c5\u5305\u5185\u5bb9\u62f7\u8d1d\u4e00\u4efd\uff0c\u5347\u7ea7\u6210\u529f\u540e\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u56de\u6765\u3002<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e09\u8282\uff1a\u505c\u6b62php\u670d\u52a1<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">service php-fpm stop<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u56db\u8282\uff1a\u66f4\u6362 RPM \u6e90<\/h4>\n\n\n\n<p>Centos 5.X\uff1a<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">rpm -Uvh http:\/\/mirror.webtatic.com\/yum\/el5\/latest.rpm<\/p>\n\n\n\n<p>CentOs 6.x\uff1a<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">rpm -Uvh http:\/\/mirror.webtatic.com\/yum\/el6\/latest.rpm <\/p>\n\n\n\n<p>CentOs 7.X\uff1a<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">rpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el7\/epel-release.rpm<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">rpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e94\u8282\uff1a\u5220\u9664PHP\u4ee5\u53ca\u76f8\u5173\u5b89\u88c5\u5305<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">yum remove php<\/p>\n\n\n\n<p style=\"text-align:left\" class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">yum remove php*<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u516d\u8282\uff1a\u5b89\u88c5\u65b0\u7248\u672c PHP\u4ee5\u53ca\u76f8\u5173\u5b89\u88c5\u5305<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">php 7.0\/7.1\/7.2 \u5206\u522b\u8868\u793a\u4e3a 70w\/71w\/72w\nCentOs 6.x \u7684 RPM \u6e90\u4e2d\u6700\u9ad8\u53ea\u6709 7.1\nCentOs 7.x \u7684 RPM \u6e90\u4e2d\u6709 7.2<\/pre>\n\n\n\n<p style=\"font-size:10px\" class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">yum install php71w-cli php71w-common php71w-fpm php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-pdo php71w-pear php71w-pecl-apcu php71w-pecl-jsonc php71w-pecl-zip php71w-process php71w-xml php71w-xmlrpc<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e03\u8282\uff1a\u91cd\u65b0\u542f\u52a8\u76f8\u5173\u670d\u52a1<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>service php-fpm start<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u516b\u8282\uff1a\u67e5\u770b\u5f53\u524d\u7248\u672c<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">php -v<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e5d\u8282\uff1a\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<\/h4>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\">chkconfig &#8211;add php-fpm<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801-1024x1024.jpeg\" alt=\"\" class=\"wp-image-67\" width=\"256\" height=\"256\" srcset=\"http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801-1024x1024.jpeg 1024w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801-150x150.jpeg 150w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801-300x300.jpeg 300w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801-768x768.jpeg 768w, http:\/\/blog.caincity.com\/wp-content\/uploads\/2019\/07\/\u6253\u8d4f\u7801.jpeg 1152w\" sizes=\"(max-width: 256px) 100vw, 256px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>wordpress5.2.2\u9700\u8981php5.6\u4ee5\u4e0a\u7248\u672c\uff0c\u6211\u7684php\u662f5.5.38\uff0c\u6ca1\u529e\u6cd5\uff0c\u53ea\u80fd\u5347\u7ea7\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/posts\/91"}],"collection":[{"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91"}],"version-history":[{"count":83,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":183,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions\/183"}],"wp:attachment":[{"href":"http:\/\/blog.caincity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.caincity.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}