mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
增加erlang语言xdb查询客户端
This commit is contained in:
parent
18abb9d999
commit
4efa1b36b2
@ -1,9 +1,24 @@
|
||||
ip2region
|
||||
=====
|
||||
# ip2region xdb erlang 查询客户端
|
||||
|
||||
An OTP application
|
||||
|
||||
Build
|
||||
-----
|
||||
### 编译
|
||||
|
||||
$ rebar3 compile
|
||||
```
|
||||
$ rebar3 compile
|
||||
```
|
||||
### 运行
|
||||
启动erlang节点:
|
||||
```
|
||||
$ rebar3 shell
|
||||
|
||||
```
|
||||
在erlang节点中执行以下指令查询Ip地址信息:
|
||||
```
|
||||
1> ip2region:search("1.0.8.0").
|
||||
#{city => <<229,185,191,229,183,158,229,184,130>>,
|
||||
country => <<228,184,173,229,155,189>>,
|
||||
isp => <<231,148,181,228,191,161>>,
|
||||
province => <<229,185,191,228,184,156,231,156,129>>,
|
||||
region => <<>>}
|
||||
2>
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user