When starting the linux server on aws, if the ssh login is cut off, the server will go down, so I want to solve it!
It looks like you should start it like this!
nohup COMMAND >out.log 2>err.log &
When starting the flask file run.py, I commanded as follows.
nohup FLASK_APP=run.py FLASK_DEBUG=1 nohup flask run --host='0.0.0.0' --port=5000 >out.log 2>err.log &
https://www.ukeyslabo.com/linux/ps-bg/ ↓ Almost this article is mom https://mick3355-dev.hatenablog.com/entry/2018/04/16/125133