web服务器

python2 -m SimpleHTTPServer 还有mongoose这是一个软件,是轻量的。 这两个都是web服务器,也就是可以单方向地传一些文件与信息。
应用一:当局域下有两台电脑,一台上开了一个网页,要在另了一台电脑上开同一个网页,可以保存这一个网页后开启web服务器
应用二:可以在另一个设置上用支持http的流媒体看一这台电脑上的视频。实验发现,SimpleHTTPServer对于流媒体不支持,反正不能正常工作。 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Droopy 这是web的文件传输工作,运行这个,可以让别人给你传文件,在我路由下速度可达250K Droopy is a mini Web server whose sole purpose is to let others upload files to your computer. Does it work on my computer ? You can use it on Unix (Linux, BSD, MacOSX) and Windows. Droopy is a python script so you’ll need to have  Python  installed. How to use it ? Note: A tutorial on how to set up Droopy on Windows was very kindly written by Ronan. The rest of this section focuses on Linux and MacOSX. Droopy is a command-line program. I’ll suppose you’ve downloaded  and saved the file in ~/bin/. Go to the directory where you want the uploaded files to be stored, for example: mkdir ~/uploads cd ~/uploads Then, run droopy. You can give a message and a picture to display: python ~/bin/droopy -m "Hi, it's me Bob. You can send me a file." -p ~/avatar.png And it’s up and running on port 8000 of you computer. Check it out at http://localhost:8000, and give  your computer’s address  to your friends. Type droopy -h to see all options: Usage: droopy [options] [PORT] Options: -h, --help                            show this help message and exit -d DIRECTORY, --directory DIRECTORY   set the directory to upload files to -m MESSAGE, --message MESSAGE         set the message -p PICTURE, --picture PICTURE         set the picture --dl                                  provide download links --save-config                         save options in a configuration file --delete-config                       delete the configuration file and exit
原文地址:https://www.cnblogs.com/fengidri/p/2757497.html