资 源 简 介
what is iphttpd?
high performance simple HTTP service for query ip location. 高性能轻量级IP地理位置查询Http服务。
并发100的情况下,每秒处理能力高达:20229.24/sec。
Any question, please let me know: bit.kevin@gmail.com
install
```
wget --no-check-certificate "https://github.com/downloads/libevent/libevent/libevent-2.0.16-stable.tar.gz"
tar zxf libevent-2.0.16-stable.tar.gz
cd libevent-2.0.16-stable/
./configure --prefix=/usr/local/libevent-2.0.16-stable/
make
sudo make install
cd ../
wget "http://iphttpd.googlecode.com/files/iphttpd-0.1.1.tar.gz"
tar zxf iphttpd-0.1.1.tar.gz
cd iphttpd
make
sudo make install
```
run
```
# show help
iphttpd -h
run
default will listen on 0.0.0.0:8080, daemon
iphttpd -f /data_path/qqwry.dat
stop
killall iphttpd
```
usage
```
# show iphttpd status
curl "http://127.0.0.1:8080/_status"
get