【问题标题】:how to keep gunicorn flask app running after ssh aws ec2 instance如何在 ssh aws ec2 实例之后保持 gunicorn flask 应用程序运行
【发布时间】:2018-09-24 18:12:05
【问题描述】:

我是服务器和应用程序的新手。

目前,我已经在我的 aws 实例上创建了一个应用程序。

gunicorn --threads 4 -b 0.0.0.0:5000 --access-logfile server.log --timeout 60 server:app

但是我想在我 ssh 实例后让它继续运行,我该如何实现呢?

[2018-09-24 17:45:28 +0000] [8318] [INFO] Starting gunicorn 19.9.0
[2018-09-24 17:45:28 +0000] [8318] [INFO] Listening at: 
 http://0.0.0.0:5000 (8318)
[2018-09-24 17:45:28 +0000] [8318] [INFO] Using worker: threads
[2018-09-24 17:45:28 +0000] [8321] [INFO] Booting worker with pid: 8321

我现在也必须使用 control+c 退出。

【问题讨论】:

    标签: amazon-web-services flask gunicorn


    【解决方案1】:
    猜你喜欢
    • 2014-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-04
    • 2021-06-14
    • 2022-01-15
    • 2018-08-23
    • 1970-01-01
    相关资源
    最近更新 更多