mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-25 02:06:28 +08:00
Merge pull request #76 from kesu/python3-http-example
Added Python 3 version of simple web server
This commit is contained in:
commit
a942600685
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ Notes:
|
||||||
- For interaction with files based on the output of another command (like `git`), use `fpp` ([PathPicker](https://github.com/facebook/PathPicker)).
|
- For interaction with files based on the output of another command (like `git`), use `fpp` ([PathPicker](https://github.com/facebook/PathPicker)).
|
||||||
|
|
||||||
- For a simple web server for all files in the current directory (and subdirs), available to anyone on your network, use:
|
- For a simple web server for all files in the current directory (and subdirs), available to anyone on your network, use:
|
||||||
`python -m SimpleHTTPServer 7777` (for port 7777 and Python 2).
|
`python -m SimpleHTTPServer 7777` (for port 7777 and Python 2) and `python -m http.server 7777` (for port 7777 and Python 3).
|
||||||
|
|
||||||
|
|
||||||
## Processing files and data
|
## Processing files and data
|
||||||
|
|
Loading…
Reference in a new issue