python -m SimpleHTTPServer - Listening on 0.0.0.0:8000 but http://0.0.0.0:8000/test.html gives “Page Not Found”

前端 未结 10 1390
情歌与酒
情歌与酒 2020-12-29 04:54

After cding to my folder I enter

python -m SimpleHTTPServer

and get

Serving HTTP on 0.0.0.0 port 8000 ...
<
10条回答
  •  悲哀的现实
    2020-12-29 05:17

    This worked for me on Windows 8. Did not download any software!

    In cmd:

    1. Go to the directory that your file is in.
    2. python -m SimpleHTTPServer
      Shows "Serving HTTP on 0.0.0.0 port 8000 ..."

    Now, find out your system name. For Windows 8: Control Panel -> System. You will see the computer name here. Let's say it is "Abhinav".

    Your local server will be hosted at "Abhinav.local:8000".

提交回复
热议问题