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