python 快速启动http监听服务

2021-06-11 07:03

阅读:409

标签:code   root   col   span   http   ted   python2   bsp   not found   

python3

[root@vm10-20-9-45 ~]# python3 -m http.server 2378
Serving HTTP on 0.0.0.0 port 2378 (http://0.0.0.0:2378/) ...
100.81.171.16 - - [03/Jan/2021 19:24:57] code 501, message Unsupported method (POST)
100.81.171.16 - - [03/Jan/2021 19:24:57] "POST /index HTTP/1.1" 501 -

python2

 [root@vm10-20-9-45 ~]# python2 -m SimpleHTTPServer 2378
Serving HTTP on 0.0.0.0 port 2378 ...
100.81.82.14 - - [03/Jan/2021 19:26:24] code 501, message Unsupported method (POST)
100.81.82.14 - - [03/Jan/2021 19:26:24] "POST /index HTTP/1.1" 501 -
100.81.82.12 - - [03/Jan/2021 19:26:34] code 404, message File not found
100.81.82.12 - - [03/Jan/2021 19:26:34] "GET /index HTTP/1.1" 404 -

 

python 快速启动http监听服务

标签:code   root   col   span   http   ted   python2   bsp   not found   

原文地址:https://www.cnblogs.com/zhangmingda/p/14226601.html


评论


亲,登录后才可以留言!