Simple, fast and stable
- ets as backend
- thread pool and high water mark
- regular snapshot
- home-made http server
- Erlang R16B03 or later versions
Build the code,
makeinitialize(or overwrite) the data store,
erl -pz ebin -s geoip init carefulstart the server,
./daemon.shthen visit http://127.0.0.1/api/ip/get/110.64.91.39 or look up any other IPs.
If you want to check out the server status,
sudo erl -sname name -remsh geoip@host