amazon-web-services - 如何在 ssh aws ec2 实例之后保持 gunicorn flask 应用程序运行
问题描述
我是服务器和应用程序的新手。
目前,我已经在我的 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 退出。
解决方案
推荐阅读
- gradle - 使用 BasicAuthentication 的 Maven 存储库的身份验证失败的快速失败 Gradle
- react-native - 可以在前端使用 Firebase Auth SDK 进行移动应用身份验证吗?
- python - 如何处理消息框上的“删除窗口”协议-Python tkinter
- windows-10 - Windows 10 中基于 WPA2 企业证书的日志记录问题
- python - 自动前后移动矩形
- excel - 使用来自多个工作表的条件将项目从多个范围添加到组合框
- python - TensorFlow 在 text_dataset_from_directory 之后重塑
- selenium-chromedriver - SpecFlow - 参数类型“System.MarshalByRefObject”无法转换为参数类型“TechTalk.SpecRun.Common.Logging.ITestLogger”
- node.js - 时间限制增加时如何自动将数据插入MongoDB
- string - RASA:如果示例包含数字作为数字序列,则检测到错误的意图和实体