码迷,mamicode.com
首页 > 编程语言 > 详细

python 快速启动http监听服务

时间:2021-01-06 12:24:12      阅读:0      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!