Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29539

Keep web servers running on Amazon EC2 instance

$
0
0

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?


Viewing all articles
Browse latest Browse all 29539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>