Skip to content
Advertisement

How to keep my web app running after exiting from EC2 CLI

I have tried tmux to keep my Streamlit app running on my AWS EC2 instance but it is not working, I am new to AWS and Linux, anybody ??

Advertisement

Answer

I suggest you use screen Utility.

Start new Screen

You can start a new screen by the following command

screen

Then Press Enter to Start using Screen.

Detach Screen

Press Ctrl+A+D same time as to Detach from the screen.

List Detach screen

You can list Running Screen by

screen -ls 

Reattach existing Screen

You can Reattach screen by

screen -r <Screen_name>
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement