Skip to content

Instantly share code, notes, and snippets.

@moijes12
Created July 2, 2017 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moijes12/a20dce23a6436829ce91cec93a604d8b to your computer and use it in GitHub Desktop.
Save moijes12/a20dce23a6436829ce91cec93a604d8b to your computer and use it in GitHub Desktop.
Starting the Python SimpleHTTPServer and keeping it running even after logging out
Below is a command I used to start the Python provided SimpleHTTPServer in a session and have it running even after I logout.
I found this command on the web and found it quite useful. This work is attributed to that original author.
The command will run a python based webserver on port 8000 of the host on which it was called.
screen -d -m python -m SimpleHTTPServer 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment