每天一个python段子(2):一句话http服务器

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/counsellor/article/details/83790099

0x00 Python版本: python2

ipv4

python -m SimpleHTTPServer 8080

ipv6

python -c "import socket,SocketServer,CGIHTTPServer;SocketServer.TCPServer.address_family=socket.AF_INET6;CGIHTTPServer.test()" 8080

0x01 Python版本: python3

ipv4

python3 -m http.server 8080

ipv6

未发现…

猜你喜欢

转载自blog.csdn.net/counsellor/article/details/83790099