Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:threelinestip [2012/12/01 18:13]
a [Create static mirror of dynamic web site (ex. Wordpress)]
tips:threelinestip [2015/01/07 07:47] (current)
mrizvic run local/remote webserver with python
Line 106: Line 106:
 </code> </code>
  
 +===== Local/remote webserver #2 (python) =====
 +
 +Serve files on port 8000 for anybody from the directory from where you start this command: 
 +
 +python 2.x
 +<code bash|>
 +python -m SimpleHTTPServer 
 +</code>
 +
 +python 3.x
 +<code bash|>
 +python -m http.server
 +</code>
 +
 +If other port is desired (for example 9000) then add port number to the command:
 +<code bash|>
 +python -m SimpleHTTPServer 9000
 +</code>
  
 ===== resolving IP Addresse (nmap) ===== ===== resolving IP Addresse (nmap) =====
tips/threelinestip.1354382007.txt.gz · Last modified: 2012/12/01 18:13 by a
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready