Giter Site home page Giter Site logo

tinyweb's Introduction


TinyWeb is a high-performance web server which is based on C++11.

  • TinyWeb utilizes what's called an event-driven programming model.
  • The implementation method is epoll+no-blocking I/O.
  • The gobals of this application are high-performance,stability,simple configuration, and low resource consumption.
  • Module design is a efficient approach to design this system.

Quick Start

Get Code

git clone https://github.com/GeneralSandman/TinyWeb

Install

cd TinyWeb/src
make
make clean

Configure

sudo cp TinyWeb.conf /
vim /TinyWeb.conf

Each line is a comment line which begin with #.

name meaning
Basic-configure
listen listen-port
processpoll number of process
Docs path of html
HostName the host of web
Log-configure
LogLevel log level
LogPath log path
DebugFile Debug level file
InfoFile Info level file
WarnFile Warn level file
ErrorFile Error level file
FatalFile Fatal level file

Start Server

  • Start server with default file /TinyWeb.conf.You need to create this file if it does not exist otherwise server return error and exit.
sudo ./TinyWeb
  • A configure file will be appointed when using -c <file>.
sudo ./TinyWeb -c /home/li/TinyWeb.conf
  • Start server with Debug level and ignore the level of configure file.(Server is under terminal's control because It is not a daemon process)
sudo ./TinyWeb -d -c /home/li/TinyWeb.conf

Reference:

1.Advanced Programming in the Unix Environment

2.UNIX Network Programming

3.C++ Primer

5.Linux 多线程服务端编程:使用 muduo C++ 网络库

6.C++ Reference

7.高性能服务器编程

tinyweb's People

Contributors

generalsandman avatar

Watchers

haoht avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.