{"id":2176,"date":"2020-11-10T13:13:55","date_gmt":"2020-11-10T04:13:55","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2176"},"modified":"2020-11-10T13:13:55","modified_gmt":"2020-11-10T04:13:55","slug":"post-2176","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/11\/10\/post-2176\/","title":{"rendered":"\u3010Python\u3011uWSGI\u3068Gunicorn\u9055\u3044\u304c\u5224\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u3010Python\u3011uWSGI\u3068Gunicorn\u9055\u3044\u304c\u5224\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f<\/h2>\n<p>Docker\u3067\u306e\u69cb\u7bc9\u3067\u306f\u307e\u3063\u305f\u306e\u304cWSGI\u3068NGINX\u306e\u3084\u308a\u53d6\u308a\u3002<br \/>\n\u79c1\u306e\u6301\u3063\u3066\u3044\u308bpython\u306e\u53c2\u8003\u66f8\u304cGunicorn\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001WEB\u4e0a\u306b\u306fuWSGI\u306e\u4e8b\u4f8b\u304c\u6ca2\u5c71\u3002<br \/>\n\u300c\u305d\u3046\u3044\u3048\u3070\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u9055\u3044\u77e5\u3089\u306a\u3044\u3084\u300d\u3068\u601d\u3044\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>\u305d\u3082\u305d\u3082WSGI\u3068\u306f\u306a\u3093\u305e\u3084<\/h3>\n<p><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-3333\/\">PEP3333<\/a>\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u4ed5\u69d8\u306e\u4e8b\u3067\u3001Web Server Gateway Interface\u306e\u7565\u3002<\/p>\n<div class=\"borderBox\">\n<p>Python 3\u3067\u306f\u6587\u5b57\u5217\u3068\u30d0\u30a4\u30c8\u5217\u304c\u300c\u9055\u3046\u30e2\u30ce\u300d\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30d0\u30a4\u30ca\u30ea\u306fbytes\u578b\u3001\u300c\u6587\u5b57\u5217\u300d\u306fUnicode\u6587\u5b57\u5217\u306e\u3053\u3068\u3092\u8868\u3059\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u305d\u308c\u307e\u3067\u306f\u4f8b\u3048\u3070HTTP\u30d8\u30c3\u30c0\u306e\u30c7\u30fc\u30bf\u306f\u30c6\u30ad\u30b9\u30c8\/\u30d0\u30a4\u30ca\u30ea\u3069\u3061\u3089\u3068\u3057\u3066\u3082\u6271\u308f\u308c\u3066\u3044\u305f\u304c\u3001\u3069\u3061\u3089\u3067\u6271\u3046\u304b\u3092\u6c7a\u3081\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u304f\u306a\u3063\u305f\u3002WSGI\u3067\u306f\u30d8\u30c3\u30c0\u30c7\u30fc\u30bf\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u3002<\/p>\n<\/div>\n<p>\u7d30\u304b\u304f\u898b\u3066\u3044\u304f\u3068\u8272\u3005\u6df1\u305d\u3046\u3060\u3051\u3069\u300c\u3053\u3046\u3044\u3046\u30e2\u30ce\u300d\u3068\u3057\u3066\u8a18\u61b6\u3057\u3066\u304a\u3044\u3066\u3082\u554f\u984c\u306a\u3055\u305d\u3046\u306a\u306e\u3067\u8a73\u7d30\u306f\u30b9\u30ad\u30c3\u30d7\u3002<\/p>\n<h3>WSGI\u306b\u6e96\u62e0\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306f\u3044\u304f\u3064\u3082\u3042\u308b<\/h3>\n<p>uWSGI\u3084Gunicorn\u3060\u3051\u304cWSGI\u306b\u6e96\u62e0\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<div class=\"paperBox\">\n<ul>\n<li>uWSGI<\/li>\n<li>Gunicorn<\/li>\n<li>mod_wsgi<\/li>\n<li>mod_python<\/li>\n<li>isapi-wsgi<\/li>\n<li>PyISAPIe<\/li>\n<li>NGINX Unit<\/li>\n<\/ul>\n<\/div>\n<p>\u3067\u3082\u30b0\u30b0\u3063\u3066\u51fa\u3066\u304f\u308b\u306e\u306f\u5927\u6982\u300euWSGI\u300f\u300eGunicorn\u300f\u306a\u306e\u3067\u3053\u306e2\u3064\u306e\u9055\u3044\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>uWSGI\u3068Gunicorn\u306e\u5927\u304d\u306a\u9055\u3044<\/h3>\n<p>\u4e00\u756a\u306e\u9055\u3044\u306f\u3010\u51fa\u6765\u308b\u4e8b\u306e\u591a\u3055\u3011\u306e\u69d8\u3067\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ol>\n<li>Gunicorn\u3000= \u30b7\u30f3\u30d7\u30eb\u304b\u3064\u5fc5\u8981\u5341\u5206\u306a\u6a5f\u80fd\u3092\u6301\u3064<\/li>\n<li>uWSGI\u3000\u3000= \u591a\u6a5f\u80fd\u3067Rudy\u3084PHP\u306a\u3069\u306b\u3082\u4f7f\u3048\u308b\u6c4e\u7528\u6027\u3092\u6301\u3064(\u305d\u306e\u5206\u8a2d\u5b9a\u30d1\u30e9\u30e1\u30fc\u30bf\u3082\u591a\u3044)<\/li>\n<\/ol>\n<\/div>\n<p>Gunicorn\u306f\u8d77\u52d5\u3084\u8a2d\u5b9a\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u6271\u3044\u6613\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u4e00\u65b9\u3001uWSGI\u306f\u3068\u306b\u304b\u304f\u591a\u6a5f\u80fd\u3002https\u3084\u5c02\u7528\u306euwsgi\u30d7\u30ed\u30c8\u30b3\u30eb\u3082\u4f7f\u3048\u30b9\u30d7\u30fc\u30e9\u6a5f\u80fd\u3082\u3042\u308b\u3002<\/p>\n<h3>uWSGI\u3068Gunicorn\u306e\u901f\u5ea6\u306e\u9055\u3044<\/h3>\n<p>\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308b\u5206\u3060\u3051Gunicorn\u306e\u65b9\u304c\u65e9\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001uWSGI\u306e\u65b9\u304c\u65e9\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u65e9\u304f\u3066\u591a\u6a5f\u80fd\u3060\u3063\u305f\u3089uWSGI\u3092\u4f7f\u3044\u307e\u3059\u3088\u306d\u3002<br \/>\nWEB\u4e0a\u306e\u8a18\u4e8b\u304c\u591a\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u53c2\u8003\u66f8\u306f\u6a2a\u306b\u7f6e\u3044\u3066uWSGI\u3067\u8a2d\u5b9a\u3057\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>uWSGI\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c120\u4ee5\u4e0a\u3042\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u7406\u89e3\u3059\u308b\u306e\u306f\u306a\u304b\u306a\u304b\u9060\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010Python\u3011uWSGI\u3068Gunicorn\u9055\u3044\u304c\u5224\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f Docker\u3067\u306e\u69cb\u7bc9\u3067\u306f\u307e\u3063\u305f\u306e\u304cWSGI\u3068NGINX\u306e\u3084\u308a\u53d6\u308a\u3002 \u79c1\u306e\u6301\u3063\u3066\u3044\u308bpython\u306e\u53c2\u8003\u66f8\u304cGunicorn\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001WEB\u4e0a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[38],"tags":[814,498,818,398,817,384,816,815,247,58,67,45],"class_list":["post-2176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-memorandum","tag-django","tag-docker","tag-gunicorn","tag-python-3","tag-uwsgi","tag-web","tag-wsgi","tag-815","tag-247","tag-58","tag-67","tag-45"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/11\/python.png?fit=1310%2C874&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2176"}],"version-history":[{"count":1,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2176\/revisions"}],"predecessor-version":[{"id":2177,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2176\/revisions\/2177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/2173"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}