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,
make
initialize(or overwrite) the data store,
erl -pz ebin -s geoip init careful
start the server,
./daemon.sh
then 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