python 快速启动http监听服务


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 -

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM