I want to run two application servers on Amazon EC2 instance using different ports (5000 and 5001) and keep them running after closing the SSH connection.
I am using the command
disown -h %1
bg 1
EDIT: the two applications are:
- python app using Flask framework on port 5001
- HTTP server on port 5000
but after the connection to SSH is closed, the running servers are stopped!
could you please advise on how I can handle it?