{"id":368,"date":"2013-10-16T23:16:25","date_gmt":"2013-10-16T14:16:25","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2013\/10\/16\/serversmancentos_6_django_3_django\/"},"modified":"2013-10-16T23:16:25","modified_gmt":"2013-10-16T14:16:25","slug":"serversmancentos_6_django_3_django","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/16\/serversmancentos_6_django_3_django\/","title":{"rendered":"ServersMan(CentOS 6)\u306b Django \u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b(3) Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4048672096\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4048672096&amp;linkCode=as2&amp;tag=typea09-22\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4048672096&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4048672096\" width=\"1\" height=\"1\" \/>   <\/p>\n<p>\u3053\u3053\u307e\u3067\u306b\u3001<\/p>\n<ul>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/06\/serversmancentos_6_django_1_python27\">Python2.7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a> <\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/14\/serversmancentos_6_django_2_mysql\">MySQL5.6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a> <\/li>\n<\/ul>\n<p>\u3092\u884c\u3063\u305f\u306e\u3067\u3001Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3059\u308b\u3002<\/p>\n<h2>Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h3>Django \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p><a href=\"https:\/\/www.djangoproject.com\/download\/\">https:\/\/www.djangoproject.com\/download\/<\/a><\/p>\n<pre class=\"prettyprint linenums\"># wget https:\/\/www.djangoproject.com\/download\/1.5.4\/tarball\/<\/pre>\n<h3>\u89e3\u51cd<\/h3>\n<pre class=\"prettyprint linenums\"># tar xvf Django-1.5.4.tar.gz<\/pre>\n<h3>Django \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/06\/serversmancentos_6_django_1_python27\">\u4e8b\u524d\u306b\u6e96\u5099\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3044\u305f\u3001Python2.7<\/a> \u306bDjango\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">]# cd Django-1.5.4\r\n# python2.7 setup.py install<\/pre>\n<h2>MySQL-Python \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Python \u304b\u3089 MySQL\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001<a href=\"https:\/\/sourceforge.net\/projects\/mysql-python\/files\/mysql-python\/\">MySQL-Python<\/a> \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u3002<\/p>\n<p>\u3053\u3061\u3089\u3082\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/06\/serversmancentos_6_django_1_python27\">Python2.7<\/a> \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u3002<\/p>\n<h3>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u89e3\u51cd\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"prettyprint linenums\"># wget --no-check-certificate https:\/\/pypi.python.org\/packages\/source\/M\/MySQL-python\/MySQL-python-1.2.4.zip#md5=ddf2386daf10a97af115ffad2ed4a9a0\r\n# unzip MySQL-python-1.2.4.zip \r\n# cd MySQL-python-1.2.4\r\n# python2.7 setup.py instal<\/pre>\n<h2>mod_wsgi \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<ul>\n<li><a href=\"http:\/\/docs.nullpobug.com\/django-doc-ja\/trunk\/howto\/deployment\/modwsgi.html\">http:\/\/docs.nullpobug.com\/django-doc-ja\/trunk\/howto\/deployment\/modwsgi.html<\/a> <\/li>\n<li><a href=\"https:\/\/code.google.com\/p\/modwsgi\/wiki\/QuickInstallationGuide\">https:\/\/code.google.com\/p\/modwsgi\/wiki\/QuickInstallationGuide<\/a> <\/li>\n<\/ul>\n<p>Apache \u3068 Django \u3092\u9023\u643a\u3055\u305b\u308b\u305f\u3081\u306b\u3001mod_wsgi \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p><a href=\"http:\/\/ja.wikipedia.org\/wiki\/Web_Server_Gateway_Interface\">WSGI \u3068\u306f\u3001Web\u30b5\u30fc\u30d0\u30fc\u3068Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5b9a\u7fa9\u3067\u3001Python\u3067\u6a19\u6e96\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3044\u308b\u3002<\/a><\/p>\n<h3>\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<h4>httpd-devel<\/h4>\n<pre class=\"prettyprint linenums\"># yum install httpd-devel<\/pre>\n<\/p>\n<h4>python-devel<\/h4>\n<pre class=\"prettyprint linenums\"># yum install python-devel<\/pre>\n<h4>mod_ssl<\/h4>\n<pre class=\"prettyprint linenums\"># yum install mod_ssl<\/pre>\n<h3>modwsgi \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<h4>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u89e3\u51cd<\/h4>\n<pre class=\"prettyprint linenums\"># wget http:\/\/modwsgi.googlecode.com\/files\/mod_wsgi-3.4.tar.gz\r\n# tar xvf mod_wsgi-3.4.tar.gz <\/pre>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>&#8211;with-pyhton \u306b\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2013\/10\/06\/serversmancentos_6_django_1_python27\">Python2.7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30b9<\/a>\u3092\u6307\u5b9a\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"prettyprint linenums\"># cd mod_wsgi-3.4\r\n# .\/configure --with-apxs=\/usr\/sbin\/apxs --with-python=\/usr\/local\/bin\/python2.7\r\n# make\r\n# make install<\/pre>\n<p>Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u307e\u3067\u306b\u3001 Python2.7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb MySQL5.6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u3092\u884c\u3063\u305f\u306e\u3067\u3001Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3059\u308b\u3002 Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Django \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 https:\/\/www.dj [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[29],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-django"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}