Quick share folder or sample http server using python

So lets start
cd /var/www/html
[root@test11 html]# python -m SimpleHTTPServer

Serving HTTP on 0.0.0.0 port 8000 ...
Test11.unixmen.com - - [23/Sep/2009 07:00:29] "GET / HTTP/1.1" 200 –

or
[root@test11 html]# python -m SimpleHTTPServer 8080

or
[root@test11 html]# python -m SimpleHTTPServer your_port


Now open your browser with http://localhost:8000 or http://127.0.0.1 or http://IP:8000 http://your_IP_adress:your_port

Коментарі