Skip to content
This repository

A lightweight online game server

branch: master


Install autoconf first for jemalloc

git clone
cd skynet
make 'PLATFORM'  # PLATFORM can be linux, macosx, freebsd now

Or you can :

export PLAT=linux


Run these in different console

./skynet examples/config    # Launch first skynet node  (Gate server) and a skynet-master (see config for standalone option)
lua examples/client.lua     # Launch a client, and try to input some words.

About Lua

Skynet put a modified version of lua 5.2.3 in 3rd/lua , it can share proto type between lua state ( .

Each lua file only load once and cache it in memory during skynet start . so if you want to reflush the cache , call skynet.cache.clear() .

You can also use the offical lua version , edit the makefile by yourself .

Blog (in Chinese)

Something went wrong with that request. Please try again.