Code Monkey home page Code Monkey logo

alilua's Introduction

aLiLua

A epoll/kqueue based web server, inculded lua/coevent support (support Linux/MacOS/BSD platform)

*WebSocket supported

Install

###Requires

Ubuntu:

sudo apt-get install libssl-dev

Fedora:

sudo yum install openssl-devel

###Install LuaJit

wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz

tar zxf LuaJIT-2.0.2.tar.gz

cd LuaJIT-2.0.2

make

sudo make install

make clean

sudo ldconfig

###Install aLiLua

$git clone https://github.com/yo2oneoo/alilua.git

$cd alilua

$sudo make install clean

Using LuaJit

$sudo make install LUAJIT=/usr/local/lib

Setting Prefix

$sudo make install PREFIX=/usr/local/alilua

Start

$sudo alilua --daemon --bind=8080

CommandLine Options

--bind=127.0.0.1:80  server bind. or --bind=80 for bind at 0.0.0.0:80
--daemon             process mode
--process=number     workers
--log=file path      access log
--host-route         Special route file path
--code-cache-ttl     number of code cache time(sec) default 60 sec
--cache-size         size of YAC shared memory cache (1m or 4096000k)

Config

$vi /usr/local/alilua/host-route.lua

Limits

Response header length < 3KB

Response body length < 900KB

Documents

http://alilua.com/docs.html

Maillist

https://groups.google.com/forum/?hl=en#!forum/alilua

alilua's People

Contributors

oneoo avatar

Watchers

Xian Zhang 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.