Python opens a simple HTTP service

Use python to open the open port of simple http in the linux environment machine

One, python version <= 2.3

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

Second, Python version >= 2.4

python -m SimpleHTTPServer 8000

Three, Python 3.x version

python -m http.server 8000

Guess you like

Origin blog.csdn.net/TFATS/article/details/122348039