0

I am using Gunicorn to power Django application on a remote server (ubuntu), to which I connect by ssh. Once Gunicorn has started the status log pops up showing you what is going on and such. However when I close my ssh session and reconnect later on I cant seem to reopen the process without killing Gunicorn and rebooting the server.

4

1 回答 1

1

不确定我是否正确理解了您的问题...在运行 django/gunicorn 时,通常使用一些工具来控制进程会很有帮助。这样做的一个非常好的选择是使用 supervisord: http ://docs.gunicorn.org/en/latest/deploy.html#supervisor

如果您只想直接运行进程并能够(断开)连接 - 通常screen是一个不错的选择。它允许您在离开“虚拟?”时断开 ssh 会话。终端运行。只需重新连接到您的服务器并使用以下命令重新连接:

screen -xr
于 2013-10-15T17:47:13.057 回答