{"id":580,"date":"2020-07-16T16:42:36","date_gmt":"2020-07-16T08:42:36","guid":{"rendered":"https:\/\/kanghaov.com\/?p=580"},"modified":"2024-11-26T15:34:43","modified_gmt":"2024-11-26T07:34:43","slug":"centos7%e6%90%ad%e5%bb%badjango1-9-11nginxmysql5-7","status":"publish","type":"post","link":"https:\/\/nemo.cool\/580.html","title":{"rendered":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7"},"content":{"rendered":"<h3>1. Centos7 \u4fee\u6539yum\u6e90<\/h3>\n<p>\u4e3a\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\uff0c\u5c06Centos\u7684\u9ed8\u8ba4\u6e90\u4fee\u6539\u4e3a\u963f\u91cc\u955c\u50cf\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/developer.aliyun.com\/mirror\/centos?spm=a2c6h.13651102.0.0.3e221b11HkQUBT\">\u8fc7\u7a0b<\/a><\/p>\n<p>\u5728\u521b\u5efa\u7f13\u5b58\u8fc7\u7a0b\u4e2d\u5982\u679c\u9047\u5230\uff1a<\/p>\n<pre><code class=\"\">failure: repodata\/repomd.xml from epel: [Errno 256] No more mirrors to try.\n<\/code><\/pre>\n<p>\u9700\u8981\u628a<code>\/etc\/yum.repos.d\/<\/code>\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5168\u5220\u4e86,\u91cd\u65b0\u66f4\u65b0Base\u6e90<\/p>\n<pre><code class=\"\">wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo\nwget -O \/etc\/yum.repos.d\/epel.repo http:\/\/mirrors.aliyun.com\/repo\/epel-6.repo\nyum clean all\nyum makecache #\u751f\u6210\u7f13\u5b58\n<\/code><\/pre>\n<p>\u53c2\u7167\uff1a<\/p>\n<blockquote><p>\n  https:\/\/www.jianshu.com\/p\/7cbd1d6b76a2\n<\/p><\/blockquote>\n<h3>2. \u5b89\u88c5Python3+pip<\/h3>\n<p>\u53c2\u7167\uff1a<\/p>\n<blockquote><p>\n  https:\/\/blog.51cto.com\/9393764\/2167559\n<\/p><\/blockquote>\n<p><strong>1.\u6267\u884c:<code>yum install python-pip<\/code><\/strong><\/p>\n<p>\u82e5\u6ca1\u6709python-pip\u5305\uff0c\u5148\u6267\u884c\uff1a<code>yum -y install epel-release<\/code>\uff0c\u518d\u6267\u884c<code>yum install python-pip<\/code><\/p>\n<p><strong>2.<code>pip install --upgrade pip<\/code><\/strong><\/p>\n<p>centos\u9ed8\u8ba4\u5b89\u88c5\u4e86python2.7<\/p>\n<pre><code class=\"\">mkdir \/usr\/local\/python3\n<\/code><\/pre>\n<p><strong>3.\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a<\/strong><\/p>\n<pre><code class=\"\">yum -y groupinstall \"Development tools\"\n<\/code><\/pre>\n<blockquote><p>\n  \u5b89\u88c5\u7684\u65f6\u5019\u53ef\u80fd\u5b89\u88c5\u4e0d\u4e0a\uff0c\u6216\u8005\u5176\u4ed6\u4ec0\u4e48\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6362\u6e90\u6765\u89e3\u51b3<br \/>\n  Linux(CentOS7.1)\u4fee\u6539\u9ed8\u8ba4yum\u6e90\u4e3a\u56fd\u5185\u7684\u963f\u91cc\u4e91yum\u6e90<br \/>\n  \u4e0b\u8f7dwget<br \/>\n  yum install wget -y<br \/>\n  echo \u5907\u4efd\u5f53\u524d\u7684yum\u6e90<br \/>\n  mv \/etc\/yum.repos.d \/etc\/yum.repos.d.backup4comex<br \/>\n  echo \u65b0\u5efa\u7a7a\u7684yum\u6e90\u8bbe\u7f6e\u76ee\u5f55<br \/>\n  mkdir \/etc\/yum.repos.d<br \/>\n  echo \u4e0b\u8f7d\u963f\u91cc\u4e91\u7684yum\u6e90\u914d\u7f6e<br \/>\n  wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<br \/>\n  \u7136\u540e\u91cd\u5efa\u7f13\u5b58\uff1a<br \/>\n  yum clean all<br \/>\n  yum makecache\n<\/p><\/blockquote>\n<pre><code class=\"\">yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel\n<\/code><\/pre>\n<p><strong>4.\u5728\/usr\/local\/python3\u76ee\u5f55\u4e0b<\/strong><\/p>\n<pre><code class=\"\">wget https:\/\/www.python.org\/ftp\/python\/3.6.2\/Python-3.6.2.tar.xz\ntar -xvf  Python-3.6.2.tar.xz\ncd Python-3.6.2\n.\/configure --prefix=\/usr\/local\/python3\nmake &amp;&amp; make install\n<\/code><\/pre>\n<p><strong>5.\u5207\u6362\u5230\/usr\/bin\/\u76ee\u5f55\u4e0b<\/strong><\/p>\n<pre><code class=\"\">mv python python.bak\nmv pip pip.bak\nln -s \/usr\/local\/python3\/bin\/python3 \/usr\/bin\/python\nln -s \/usr\/local\/python3\/bin\/pip3 \/usr\/bin\/pip\n<\/code><\/pre>\n<p><strong>6.\u9632\u6b62\u4ee5\u540e\u7528yum\u6e90\u5b89\u88c5\u8f6f\u4ef6\u65f6\u62a5\u9519,\u4fee\u6539\u4ee5\u4e0b\u4e24\u9879<\/strong><br \/>\n\u4fee\u6539 \/usr\/bin\/yum \u7684\u7b2c\u4e00\u884c<\/p>\n<pre><code class=\"\">#!\/usr\/bin\/python\u6539\u6210#!\/usr\/bin\/python2.7\n<\/code><\/pre>\n<p>\u4fee\u6539 \/usr\/libexec\/urlgrabber-ext-down\u7684\u7b2c\u4e00\u884c<\/p>\n<pre><code class=\"\">#!\/usr\/bin\/python\u6539\u6210#!\/usr\/bin\/python2.7\n<\/code><\/pre>\n<p><strong>7.\u9a8c\u8bc1<\/strong><\/p>\n<pre><code class=\"\">\u8f93\u5165python\uff0c\u8fdb\u5165python3.6.2\n\n\u8f93\u5165python2\uff0c\u8fdb\u5165python2.7\n<\/code><\/pre>\n<hr \/>\n<p><strong>8\u3001\u8fd9\u91cc\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898\u662f\u5728\u4f7f\u7528pip\u5b89\u88c5\u6a21\u5757\u7684\u65f6\u5019\u7ecf\u5e38\u4f1a\u62a5\u9519<\/strong><\/p>\n<p>[root@localhost Python-3.6.2]# pip install ipython==1.2.1<br \/>\nCollecting ipython==1.2.1<br \/>\nCould not fetch URL https:\/\/pypi.python.org\/simple\/ipython\/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) &#8211; skipping<br \/>\nCould not find a version that satisfies the requirement ipython==1.2.1 (from versions: )<br \/>\nNo matching distribution found for ipython==1.2.1<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3assl\u8bc1\u4e66\u6ca1\u6709\u8ba4\u8bc1\uff0c\u53ef\u4ee5\u4f7f\u7528\u56fd\u5185\u7684\u955c\u50cf<\/p>\n<pre><code class=\"\">pip install ipython==1.2.1 -i http:\/\/pypi.douban.com\/simple\/ --trusted-host pypi.douban.com\n<\/code><\/pre>\n<p>\u5176\u4e2dipython\u662f\u5305\u7684\u540d\u5b57,\u8fd9\u6837\u5373\u53ef\u89e3\u51b3\u3002<\/p>\n<p>\u5176\u4ed6\u53c2\u8003\uff1a<\/p>\n<blockquote><p>\n  https:\/\/www.cnblogs.com\/badseal\/p\/8445096.html\n<\/p><\/blockquote>\n<p><strong>\u5b89\u88c5\u8fc7\u7a0b\u4e00\u4e9b\u95ee\u9898\u89e3\u51b3\uff1a<\/strong><\/p>\n<ol>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/Romance5201314\/article\/details\/81667778\">Linux\u8bbe\u7f6e\u9ed8\u8ba4Python\u7248\u672c<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/oHuaXin1234\/article\/details\/107135024\">Linux\u4e2dpython3\u5b89\u88c5pip<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/Harith\/article\/details\/17691137\">yum except KeyboardInterrupt, e: \u9519\u8bef<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/meitian\/p\/5462600.html\">\u4f7f\u7528yum\u547d\u4ee4\u62a5\u9519File &#8220;\/usr\/bin\/yum&#8221;, line 30 except KeyboardInterrupt, e:<\/a><\/li>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/meitian\/p\/5462600.html\">\u4f7f\u7528yum\u547d\u4ee4\u62a5\u9519File &#8220;\/usr\/bin\/yum&#8221;, line 30 except KeyboardInterrupt, e:<\/a><\/li>\n<\/ol>\n<h3>3. \u5b89\u88c5Django+MySQL+Nginx<\/h3>\n<p>\u53c2\u7167\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/ShyLoneGirl\/article\/details\/83019537\">Linux\u4e0bDjango+MySQL+Nginx<\/a><\/p>\n<p>\u8865\u5145\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/qq_25046261\/article\/details\/78985109\">CentOS6.8\u7f16\u8bd1\u5b89\u88c5Python3.6 + pip + Nginx<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/qu6zhi\/article\/details\/104123791\">\u3010CentOS-7.4\u3011Django+Nginx+MySQL<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/cloud.tencent.com\/document\/product\/213\/38056\">\u624b\u52a8\u642d\u5efa LNMP \u73af\u5883\uff08CentOS 7\uff09<\/a>\u5728\u539f\u6559\u7a0b\u5b89\u88c5nginx\u65f6\u4f1a\u62a5\u9519\uff0c\u8bf7\u53c2\u7167\u8fd9\u4e2a\u6b65\u9aa4<\/p>\n<p>\u5176\u4e2dMySQL\u7684\u5b89\u88c5\u8981\u53c2\u7167\u8fd9\u4e2a\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/luohanguo\/p\/9045391.html\">CentOS7 yum\u65b9\u5f0f\u5b89\u88c5MySQL5.7<\/a><\/p>\n<p>\u518d\u5b89\u88c5Sublime Text\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/chengyuqiang\/article\/details\/77992140\">CentOS 7.x \u5b89\u88c5Sublime Text 3.0\u6b63\u5f0f\u7248<\/a><\/p>\n<p>\u5176\u4e2d\u5b89\u88c5python-devel\uff0c\u53c2\u8003\u4e0b\u9762\u7684\u6559\u7a0b\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/smartloli\/p\/4220803.html\">\u5b89\u88c5python-devel\u5f00\u53d1\u5305<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Centos7 \u4fee\u6539yum\u6e90 \u4e3a\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\uff0c\u5c06Centos\u7684\u9ed8\u8ba4\u6e90\u4fee\u6539\u4e3a\u963f\u91cc\u955c\u50cf\uff1a \u8fc7\u7a0b \u5728\u521b\u5efa\u7f13\u5b58\u8fc7\u7a0b\u4e2d\u5982\u679c\u9047\u5230\uff1a failure: repodata\/repomd.xml from epel: [Errno 256] No more mirrors to try. \u9700\u8981\u628a\/etc\/yum.repos.d\/\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5168\u5220\u4e86,\u91cd\u65b0\u66f4\u65b0Base\u6e90 wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo wget -O \/etc\/yum.repos.d\/epel.repo http:\/\/mirrors.aliyun.com\/repo\/epel-6.repo yum clean all yum makecache #\u751f\u6210\u7f13\u5b58 \u53c2\u7167\uff1a https:\/\/www.jianshu.com\/p\/7cbd1d6b76a2 2. \u5b89\u88c5Python3+pip \u53c2\u7167\uff1a https:\/\/blog.51cto.com\/9393764\/2167559 1.\u6267\u884c:yum install python-pip \u82e5\u6ca1\u6709python-pip\u5305\uff0c\u5148\u6267\u884c\uff1ayum -y install epel-release\uff0c\u518d\u6267\u884cyum install python-pip 2.pip install &#8211;upgrade pip centos\u9ed8\u8ba4\u5b89\u88c5\u4e86python2.7 mkdir \/usr\/local\/python3 3.\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":585,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,75,2],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","category-linux","category-py"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo<\/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:\/\/nemo.cool\/580.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo\" \/>\n<meta property=\"og:description\" content=\"1. Centos7 \u4fee\u6539yum\u6e90 \u4e3a\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\uff0c\u5c06Centos\u7684\u9ed8\u8ba4\u6e90\u4fee\u6539\u4e3a\u963f\u91cc\u955c\u50cf\uff1a \u8fc7\u7a0b \u5728\u521b\u5efa\u7f13\u5b58\u8fc7\u7a0b\u4e2d\u5982\u679c\u9047\u5230\uff1a failure: repodata\/repomd.xml from epel: [Errno 256] No more mirrors to try. \u9700\u8981\u628a\/etc\/yum.repos.d\/\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5168\u5220\u4e86,\u91cd\u65b0\u66f4\u65b0Base\u6e90 wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo wget -O \/etc\/yum.repos.d\/epel.repo http:\/\/mirrors.aliyun.com\/repo\/epel-6.repo yum clean all yum makecache #\u751f\u6210\u7f13\u5b58 \u53c2\u7167\uff1a https:\/\/www.jianshu.com\/p\/7cbd1d6b76a2 2. \u5b89\u88c5Python3+pip \u53c2\u7167\uff1a https:\/\/blog.51cto.com\/9393764\/2167559 1.\u6267\u884c:yum install python-pip \u82e5\u6ca1\u6709python-pip\u5305\uff0c\u5148\u6267\u884c\uff1ayum -y install epel-release\uff0c\u518d\u6267\u884cyum install python-pip 2.pip install --upgrade pip centos\u9ed8\u8ba4\u5b89\u88c5\u4e86python2.7 mkdir \/usr\/local\/python3 3.\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nemo.cool\/580.html\" \/>\n<meta property=\"og:site_name\" content=\"Nemo\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-16T08:42:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:34:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nemo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nemo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html\"},\"author\":{\"name\":\"Nemo\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"headline\":\"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7\",\"datePublished\":\"2020-07-16T08:42:36+00:00\",\"dateModified\":\"2024-11-26T07:34:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html\"},\"wordCount\":211,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/u317137366792287178fm26gp0.png\",\"articleSection\":[\"Dev\",\"Linux\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/580.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html\",\"url\":\"https:\\\/\\\/nemo.cool\\\/580.html\",\"name\":\"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/u317137366792287178fm26gp0.png\",\"datePublished\":\"2020-07-16T08:42:36+00:00\",\"dateModified\":\"2024-11-26T07:34:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/580.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#primaryimage\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/u317137366792287178fm26gp0.png\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/u317137366792287178fm26gp0.png\",\"width\":1366,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/580.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/nemo.cool\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\",\"url\":\"https:\\\/\\\/nemo.cool\\\/\",\"name\":\"Nemo\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nemo.cool\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\",\"name\":\"Nemo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"caption\":\"Nemo\"},\"logo\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\"},\"sameAs\":[\"https:\\\/\\\/nemo.cool\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo","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:\/\/nemo.cool\/580.html","og_locale":"en_US","og_type":"article","og_title":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo","og_description":"1. Centos7 \u4fee\u6539yum\u6e90 \u4e3a\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\uff0c\u5c06Centos\u7684\u9ed8\u8ba4\u6e90\u4fee\u6539\u4e3a\u963f\u91cc\u955c\u50cf\uff1a \u8fc7\u7a0b \u5728\u521b\u5efa\u7f13\u5b58\u8fc7\u7a0b\u4e2d\u5982\u679c\u9047\u5230\uff1a failure: repodata\/repomd.xml from epel: [Errno 256] No more mirrors to try. \u9700\u8981\u628a\/etc\/yum.repos.d\/\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5168\u5220\u4e86,\u91cd\u65b0\u66f4\u65b0Base\u6e90 wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo wget -O \/etc\/yum.repos.d\/epel.repo http:\/\/mirrors.aliyun.com\/repo\/epel-6.repo yum clean all yum makecache #\u751f\u6210\u7f13\u5b58 \u53c2\u7167\uff1a https:\/\/www.jianshu.com\/p\/7cbd1d6b76a2 2. \u5b89\u88c5Python3+pip \u53c2\u7167\uff1a https:\/\/blog.51cto.com\/9393764\/2167559 1.\u6267\u884c:yum install python-pip \u82e5\u6ca1\u6709python-pip\u5305\uff0c\u5148\u6267\u884c\uff1ayum -y install epel-release\uff0c\u518d\u6267\u884cyum install python-pip 2.pip install --upgrade pip centos\u9ed8\u8ba4\u5b89\u88c5\u4e86python2.7 mkdir \/usr\/local\/python3 3.\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a [&hellip;]","og_url":"https:\/\/nemo.cool\/580.html","og_site_name":"Nemo","article_published_time":"2020-07-16T08:42:36+00:00","article_modified_time":"2024-11-26T07:34:43+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png","type":"image\/png"}],"author":"Nemo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nemo","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nemo.cool\/580.html#article","isPartOf":{"@id":"https:\/\/nemo.cool\/580.html"},"author":{"name":"Nemo","@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"headline":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7","datePublished":"2020-07-16T08:42:36+00:00","dateModified":"2024-11-26T07:34:43+00:00","mainEntityOfPage":{"@id":"https:\/\/nemo.cool\/580.html"},"wordCount":211,"commentCount":2,"publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"image":{"@id":"https:\/\/nemo.cool\/580.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png","articleSection":["Dev","Linux","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nemo.cool\/580.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nemo.cool\/580.html","url":"https:\/\/nemo.cool\/580.html","name":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7 - Nemo","isPartOf":{"@id":"https:\/\/nemo.cool\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nemo.cool\/580.html#primaryimage"},"image":{"@id":"https:\/\/nemo.cool\/580.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png","datePublished":"2020-07-16T08:42:36+00:00","dateModified":"2024-11-26T07:34:43+00:00","breadcrumb":{"@id":"https:\/\/nemo.cool\/580.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nemo.cool\/580.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/580.html#primaryimage","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2020\/07\/u317137366792287178fm26gp0.png","width":1366,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/nemo.cool\/580.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/nemo.cool\/"},{"@type":"ListItem","position":2,"name":"Centos7\u642d\u5efaDjango1.9.11+nginx+MySQL5.7"}]},{"@type":"WebSite","@id":"https:\/\/nemo.cool\/#website","url":"https:\/\/nemo.cool\/","name":"Nemo","description":"","publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nemo.cool\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2","name":"Nemo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","caption":"Nemo"},"logo":{"@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg"},"sameAs":["https:\/\/nemo.cool"]}]}},"_links":{"self":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":0,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media\/585"}],"wp:attachment":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}