$ python -m SimpleHTTPServer
Your http server will be started in port 8000 by default. Then you can visit your server by enter
If you have a index.html in your current directory, it will be opened as web page. Otherwise, the files in the current directory will be listed in browser.
If you want to specify the port (8080 as example), enter the command:
$ python -m SimpleHTTPServer 8080
0 تعليقات