silly
silly copied to clipboard
A lightweight server framework based on Lua
silly
Depend
- sudo apt-get install libreadline-dev(Debian)
- yum install readline-devel(Centos)
Build
- make
- make TLS=off (disable TLS function)
Run
./silly <config>
Config
daemon, 1 --> run as daemon, 0 --> normalbootstrap, lua entry filelualib_path, will append the package.path (in luaVM)lualib_cpath, will append the package.cpath (int luaVM)logpath, when running in daemon mode, all print message will write to[logpath]/silly-[pid].logfilepidfile, when running in daemon mode,pidfilewill used by run only once on a system
Test
- All test code are in
testfolder - Run
./silly test/test.confto test all module
Examples
examples/start.sh cluster/timer/socket/rpc/http/websocketcan run one example of cluster
Wiki
https://github.com/findstr/silly/wiki
Benchmark
https://github.com/findstr/silly/wiki/Benchmark