Run Web Server with Python3

< 1 min read

I stood up a couple of centos boxes just to represent an app server running web service.  I don’t want to go through the hassle of install lamp since I just need one page up so the easiest way I found to do this is utilize python3 to do this.

Create an index.html file with whatever info you want

Then run the following command from the same directory you have index.html in

ShellScript
sudo python3 -m http.server

Leave a Reply