The old Python 2 way of doing it:
1 | $ python -m SimpleHTTPServer |
The Python3 approach:
1 | $ python3 -m http.server |
Specify a custom port (8008
) with the Python3 approach:
1 | $ python3 -m http.server 8008 |
The old Python 2 way of doing it:
1 | $ python -m SimpleHTTPServer |
The Python3 approach:
1 | $ python3 -m http.server |
Specify a custom port (8008
) with the Python3 approach:
1 | $ python3 -m http.server 8008 |