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