【问题标题】:restarting the Gunicorn after change in my code更改我的代码后重新启动 Gunicorn
【发布时间】:2015-12-27 21:56:06
【问题描述】:

我已经使用pkill gunicorn 杀死了 gunicorn 的进程。在我的服务器中,我从 git 中提取了 chanded 代码。然后我杀死了独角兽,这样我就可以看到我的变化了..

现在我该如何重新启动 gunicorn。我正在使用 nginx 和 gunicorn。当我访问 url 时,我看到 502 Bad Gateway 错误。

【问题讨论】:

    标签: django nginx gunicorn


    【解决方案1】:

    阅读 Gunicorn 的文档 http://gunicorn.org/#quickstart.

    如果您按照教程进行操作,此行将显示如何重新启动您的 unicorn 服务...

    gunicorn -w 4 your_app:app
    

    【讨论】:

      【解决方案2】:

      在ubuntu下可以重启gunicorn:

      sudo service restart gunicorn
      

      因为你已经杀死了你需要启动它的进程:

      sudo service gunicorn start
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-04-04
        • 1970-01-01
        • 2021-02-19
        • 2012-03-06
        • 2015-09-10
        • 2020-05-27
        • 2021-09-10
        • 1970-01-01
        相关资源
        最近更新 更多