THE IT IDEAS

  • Home

Wednesday, 1 April 2015

How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly

 THE IT IDEAS     10:38     python   

How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly

first check is python available or not.

#python –V

If command return version means you have python installed.


Now reach to your source folder which you wants to serve via http to others. like below

#cd theitideas   <---- folder

Then enter below command to start serve your source folder.

#python -m SimpleHTTPServer

Now you can able to view and download your folder items via http protocol with browser. eg. localhost:8000 or 12.34.56.78:8000
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

Like Us !!!

Recent Posts

Blog Archive

  • ►  2016 (1)
    • ►  April (1)
  • ▼  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ▼  April (8)
      • How to run a simple PHP web server
      • Install apache2 Webserver, php5 and php module wi...
      • Use PHP5-FPM with Apache 2 on Ubuntu 14.04
      • Give permission yo users to run command with SUDO
      • Error : Could not load host key: /etc/ssh/ssh_hos...
      • Create SFTP User with chroot in AWS EC2
      • How to Delete ElasticBeanstalk bucket
      • How to Use Python ‘SimpleHTTPServer’ to Serve File...
    • ►  March (1)
  • ►  2014 (23)
    • ►  December (8)
    • ►  November (12)
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • Create SFTP User with chroot in AWS EC2
    Create User with below command #adduser --shell=/bin/false theitideas Provide permission of home directory #chown root:theitideas /ho...
  • How to make Google Chrome Theme
    Open Google Chrome and open Chrome web store and search my chrome theme Click on Add to Chrome     Click on Add to downloadi...
  • How to setup Network Configuration in Ubuntu Server 14.04
    Open Network Configuration file. #nano /etc/network/interface Then Add below mentioned lines and make changes as per your need. auto eth0 i...

Copyright © THE IT IDEAS | Powered by Blogger