It’s very easy to start a Python web server on localhost.
If you want something more serious but still lightweight, check out the Mongoose web server.
Fetch and compile:
wget https://mongoose.googlecode.com/files/mongoose-3.8.tgz
tar xvzf mongoose-3.8.tgz
cd mongoose
make linux
The user manual is here.
注意一点:
在7000端口启动mongoose的命令为:
./mongoose -listening_ports 7000
本文介绍如何快速在本地环境中启动一个Python Web服务器,并提供了轻量级且功能强大的Mongoose Web服务器的安装与配置步骤。通过简单的命令行操作即可完成服务器部署,适用于需要更专业但又不想过于复杂的场景。
494

被折叠的 条评论
为什么被折叠?



