python built-in HTTP Services (SimpleHTTPServer)

Copyright: Technology blog involved in the vandalism is prohibited to be used, if the resulting legal liability, bloggers will not be responsible! https://blog.csdn.net/Fly_hps/article/details/89412727

I stumbled on a giant cow AI tutorial giant cow, could not help but share to everyone. Not only is the zero-based tutorials, easy to understand, white can learn, and very humorous, but also occasionally has the connotation piece, like reading novels, like, ha ha ~ I'm learning, I feel too much bad, so to others. The point where you can jump to the tutorial!

Foreword

Sometimes we qq, when micro-channel can not log in, but they want within a local area network to transfer files So how to do it? If the file contains python installed on your system then you can create a httpserver through the python, then after another host to access the httpserver to get to the directory you want, download the files you want.

Creating HttpServer

Note: the same LAN oh:

First, enter the directory you want to share, and then re-run the following command in the directory below:

python -m SimpleHTTPServer 9999 (custom port)

After viewing the IP address of mac:

After another computer and then access the IP + port to:

Then you can download the catalog below to view any files!

Guess you like

Origin blog.csdn.net/Fly_hps/article/details/89412727
Recommended