Python 开启简易 HTTP 服务

使用 python 在 linux 环境机器中开启简易 http 的开放端口

一,python 版本 <= 2.3

python -c "import SimpleHTTPServer as s; s.test();" 8000

二,Python 版本 >= 2.4

python -m SimpleHTTPServer 8000

三,Python 3.x 版本

python -m http.server 8000

猜你喜欢

转载自blog.csdn.net/TFATS/article/details/122348039
今日推荐