{"id":2154,"date":"2017-04-30T10:44:48","date_gmt":"2017-04-30T02:44:48","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=2154"},"modified":"2017-04-30T10:44:48","modified_gmt":"2017-04-30T02:44:48","slug":"%e5%8d%87%e7%ba%a7python%e5%90%8eyum%e4%b8%8d%e5%8f%af%e7%94%a8%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/%e5%8d%87%e7%ba%a7python%e5%90%8eyum%e4%b8%8d%e5%8f%af%e7%94%a8%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/","title":{"rendered":"\u5347\u7ea7Python\u540eyum\u4e0d\u53ef\u7528\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u5347\u7ea7Python\u540eyum\u4e0d\u53ef\u7528\u7684\u89e3\u51b3\u65b9\u6848<\/p>\n<p>\u5728Centos\u5b98\u7f51\u4e0a\u67e5\u5230\u4e86\u4e00\u7bc7\u6587\u6863\uff0c\u65b9\u6cd5\u5982\u4e0b\u3002<\/p>\n<p>\u9996\u5148\u627e\u5230\u4f60\u5b89\u88c5Centos\u7684\u5149\u76d8\u6216\u8005ISO\u6587\u4ef6\uff0c\u53ea\u8981\u7cfb\u7edf\u7248\u672c\u4e00\u6837\u5373\u53ef\u3002\u62f7\u8d1d\u5982\u4e0b\u6587\u4ef6\u5230\u7cfb\u7edf\u67d0\u76ee\u5f55\u4e2d\uff1a<\/p>\n<p>python-2.6.6-36.el6.x86_64.rpm<\/p>\n<p>python-urlgrabber-3.9.1-8.el6.noarch.rpm<\/p>\n<p>python-devel-2.6.6-36.el6.x86_64.rpm<\/p>\n<p>python-libs-2.6.6-36.el6.x86_64.rpm<\/p>\n<p>yum-3.2.29-40.el6.centos.noarch.rpm<\/p>\n<p>\u5177\u4f53\u7248\u672c\u53f7\uff0c\u6839\u636e\u4f60\u7cfb\u7edf\u76d8\u6216\u8005ISO\u63d0\u4f9b\u4e3a\u51c6\u3002<\/p>\n<p>rpm -Uvh &#8211;replacepkgs *.rpm<\/p>\n<p>#\u51fa\u73b0\u5982\u4e0b\u63d0\u793a<\/p>\n<p>Preparing&#8230; ########################################### [100%]<\/p>\n<p>1:python-libs ########################################### [ 20%]<\/p>\n<p>2:python ########################################### [ 40%]<\/p>\n<p>3:python-urlgrabber ########################################### [ 60%]<\/p>\n<p>4:yum ########################################### [ 80%]<\/p>\n<p>5:python-devel ########################################### [100%]<\/p>\n<p>\u6267\u884cyum\u547d\u4ee4\uff0c\u4f60\u719f\u6089\u7684\u754c\u9762\u51fa\u73b0\u4e86~~<\/p>\n<p>php\u5b89\u88c5<\/p>\n<p>rpm -qa | grep php | xargs rpm -e &#8211;nodeps<\/p>\n<p>yum\u00a0install\u00a0php\u00a0php-mysql\u00a0php-common\u00a0php-gd\u00a0php-mbstring\u00a0php-mcrypt\u00a0php-devel\u00a0php-xml<\/p>\n<p>semanage\u00a0port\u00a0-l|grep\u00a0http<br \/>\nsemanage\u00a0port\u00a0-a\u00a0-t\u00a0http_port_t\u00a0-p\u00a0tcp 9910\u00a0\u00a0 \u5f53\u5f00\u542fselinux\uff0c\u5219\u9700\u8981\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4,\u5982\u679cselinux\u5173\u95ed\uff0c\u5219\u4e0d\u7528\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4\u589e\u52a0\u7aef\u53e3\u8fdb\u53bb\u3002<\/p>\n<p>\/etc\/init.d\/httpd\u00a0start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5347\u7ea7Python\u540eyum\u4e0d\u53ef\u7528\u7684\u89e3\u51b3\u65b9\u6848 \u5728Centos\u5b98\u7f51\u4e0a\u67e5\u5230\u4e86\u4e00\u7bc7\u6587\u6863\uff0c\u65b9\u6cd5\u5982\u4e0b\u3002 \u9996\u5148\u627e\u5230\u4f60\u5b89\u88c5Cen &#8230; <a title=\"\u5347\u7ea7Python\u540eyum\u4e0d\u53ef\u7528\u7684\u89e3\u51b3\u65b9\u6848\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/%e5%8d%87%e7%ba%a7python%e5%90%8eyum%e4%b8%8d%e5%8f%af%e7%94%a8%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/\" aria-label=\"\u9605\u8bfb \u5347\u7ea7Python\u540eyum\u4e0d\u53ef\u7528\u7684\u89e3\u51b3\u65b9\u6848\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[82,380],"class_list":["post-2154","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-python"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=2154"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2154\/revisions"}],"predecessor-version":[{"id":2155,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2154\/revisions\/2155"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=2154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=2154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=2154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}