Monday, 13 February 2017

Create simple web server with Python on Ubuntu

Create simple web server with Python on Ubuntu

There is a cool thing we can do with python command on ubuntu, we can create a simple HTTP server with python command, and you don't even have to wrote any code, simply execute the command.

How to create simple http web server with python command on ubuntu
  • open command line/terminal/console on ubuntu (simply press CTRL + ALT + T)
  • run this command
  • python -m SimpleHTTPServer
  • open url http://localhost:8000 with your favorite web browser
  • http://localhost:8000
  • show to your mom and dad, make them proud of you
Create simple web server with Python on Ubuntu


~ cheers ~

Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.