Your newborn http server.
mcr-server is an original http-server based on tcp. It is designed for deploying static web pages. Also it's a good project for learner
- No library depency(except libc and libpthread)
- Lightweight
- Service Configurable
- High Responsiveness(kept by thread connections)
- Support mime types
git clone https://github.com/jeesyn/mcr-server
Navigate to the source code directory, and run make:
make
Executable file mcr-server
will be generate in current directory.
Write server configurations to your-configure.conf
file, and start mcr-server with option -c. Otherwise default.conf
will be load.
./mcr-server [-c your-configure.conf] [-d]
Fork the mcr-server repository and create pull request, it will be processed as soon as possible.
Getting a mirror of redis official site and deploying it by mcr-server.
wget redis.io -m
...
wwwroot: realpath-of-redis.io
...
Save the config file name as redis-io.conf
./mcr-server -c redis-io.conf -d
Open browser and go localhost:8080/ You will get this vision.