Last active
June 14, 2017 05:16
-
-
Save marsyang1/2b256efb16707d51ec28e6021323a314 to your computer and use it in GitHub Desktop.
SimpleHTTPServer-http-file-server-by-python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/7943751/what-is-the-python-3-equivalent-of-python-m-simplehttpserver | |
cd path/to/files | |
python3 -m http.server | |
or | |
python -m http.server 8000 --bind 127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/12571804/lightweight-localhost-file-server-for-mac | |
cd path/to/files | |
python -mSimpleHTTPServer | |
or | |
python -mSimpleHTTPServer 2343 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment