{"title":"Gunicorn과 함께 django 사용방법","version":"3.2","locale":"ko","docname":"howto/deployment/wsgi/gunicorn","url":"/ko/3.2/howto/deployment/wsgi/gunicorn/","canonical":"https://djangodocs.dev/ko/3.2/howto/deployment/wsgi/gunicorn/","summary":"Gunicorn_(‘Green Unicon’)는 UNIX용 Pure-Python WSGI 서버입니다. 종속성이 없으며 “파이프”를 사용하여 설치할 수 있다. Gunicorn 설치법 Link to this heading # “python-mp install gunicorn”을 실행하여…","html":"<h1>Gunicorn과 함께 django 사용방법<a class=\"heading-anchor\" href=\"#how-to-use-django-with-gunicorn\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Gunicorn_(‘Green Unicon’)는 UNIX용 Pure-Python WSGI 서버입니다. 종속성이 없으며 “파이프”를 사용하여 설치할 수 있다.</p>\n<section id=\"installing-gunicorn\">\n<h2>Gunicorn 설치법<a class=\"heading-anchor\" href=\"#installing-gunicorn\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>“python-mp install gunicorn”을 실행하여 gunicorn을 설치한다. 자세한 내용은`gunicorn documentation`_. 참조.</p>\n</section>\n<section id=\"running-django-in-gunicorn-as-a-generic-wsgi-application\">\n<h2>일반적인 WSGI 애플리케이션으로 Gunicorn에서 Django 실행<a class=\"heading-anchor\" href=\"#running-django-in-gunicorn-as-a-generic-wsgi-application\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>귀니콘이 설치되면 귀니콘 서버 프로세스를 시작하는 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>귀니콘” 명령이 나온다. 가장 간단한 gunicorn의 호출은 일반적인 Django 프로젝트의 경우 다음과 같이 보이는 “application”이라는 WSGI 애플리케이션 객체가 있는 모듈의 위치를 통과하는 것이다.</p>\n<div class=\"code-block\" data-language=\"bash\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>gunicorn<span class=\"w\"> </span>myproject.wsgi\n</code></pre></div>\n<p>이는 “127.0.0.1:8000”에서 하나의 스레드를 청취하는 하나의 과정을 시작할 것이다. 프로젝트가 Python 경로에 있어야 합니다. 이 명령을 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>관리”와 동일한 디렉토리에서 실행하는 가장 간단한 방법입니다.</p>\n<p>자세한 내용은 Gunicorn의 ‘배치 설명서’를 참조하십시오.</p>\n</section>","rootId":"how-to-use-django-with-gunicorn","toc":[{"title":"Gunicorn 설치법","anchor":"installing-gunicorn","children":[]},{"title":"일반적인 WSGI 애플리케이션으로 Gunicorn에서 Django 실행","anchor":"running-django-in-gunicorn-as-a-generic-wsgi-application","children":[]}],"breadcrumbs":[{"docname":"howto/index","title":"“How-to” 가이드","url":"/ko/3.2/howto/"},{"docname":"howto/deployment/index","title":"Django 배포하기","url":"/ko/3.2/howto/deployment/"},{"docname":"howto/deployment/wsgi/index","title":"WSGI를 사용하여 배포하는 방법","url":"/ko/3.2/howto/deployment/wsgi/"}],"prev":{"docname":"howto/deployment/wsgi/index","title":"WSGI를 사용하여 배포하는 방법","url":"/ko/3.2/howto/deployment/wsgi/"},"next":{"docname":"howto/deployment/wsgi/uwsgi","title":"uWSGI와 함께 django를 사용하는 방법","url":"/ko/3.2/howto/deployment/wsgi/uwsgi/"},"formats":{"html":"/ko/3.2/howto/deployment/wsgi/gunicorn/","markdown":"/ko/3.2/howto/deployment/wsgi/gunicorn.md","json":"/ko/3.2/howto/deployment/wsgi/gunicorn.json"},"source":"https://github.com/django/django/blob/stable/3.2.x/docs/howto/deployment/wsgi/gunicorn.txt","official":"https://docs.djangoproject.com/ko/3.2/howto/deployment/wsgi/gunicorn/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}