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

前端 未结 10 1389
情歌与酒
情歌与酒 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:32

    try this in python3

    python -m http.server 8000 --bind 127.0.0.1
    

    and in your browser this url:

    http://127.0.0.1:8000/

提交回复
热议问题