笔记本📒

Python搭建自带的静态Web服务器

2021-01-21  本文已影响0人  涓涓自然卷
image.png

举个🌰:

python3 -m http.server 9001

Serving HTTP on 0.0.0.0 port 9001 (http://0.0.0.0:9001/) ...
127.0.0.1 - - [21/Jan/2021 10:50:38] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [21/Jan/2021 10:50:39] code 404, message File not found
127.0.0.1 - - [21/Jan/2021 10:50:39] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [21/Jan/2021 10:51:02] "GET /http-test01.html HTTP/1.1" 200 -
127.0.0.1 - - [21/Jan/2021 10:51:12] "GET / HTTP/1.1" 200 -

上一篇 下一篇

猜你喜欢

热点阅读