1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 13:19:02 +08:00

update readme

This commit is contained in:
zu1k 2020-07-21 06:24:46 +08:00
parent 363537c652
commit 0b2c1abfa6
2 changed files with 40 additions and 1 deletions

View File

@ -31,6 +31,7 @@ However the C version has too few functions, and the js version of Sukka is too
- Chunzhen qqip database - Chunzhen qqip database
- ZX ipv6 database - ZX ipv6 database
- Geoip2 city database - Geoip2 city database
- IPIP free database
- Pipeline support - Pipeline support
- Interactive query - Interactive query
- Offline query - Offline query
@ -232,7 +233,7 @@ $ nali update
2020/07/17 12:54:05 已将最新的纯真 IP 库保存到本地 /root/.nali/qqwry.dat 2020/07/17 12:54:05 已将最新的纯真 IP 库保存到本地 /root/.nali/qqwry.dat
``` ```
### Use Geoip2 database ### Use other database
Set environment variables `NALI_DB` Set environment variables `NALI_DB`
@ -240,19 +241,36 @@ supported database:
- Geoip2 `['geoip', 'geoip2', 'geo']` - Geoip2 `['geoip', 'geoip2', 'geo']`
- Chunzhen `['chunzhen', 'qqip', 'qqwry']` - Chunzhen `['chunzhen', 'qqip', 'qqwry']`
- IPIP `['ipip', 'ipipfree', 'ipip.net']`
#### Windows #### Windows
##### Use geoip db
``` ```
set NALI_DB=geoip set NALI_DB=geoip
``` ```
##### Use ipip db
```
set NALI_DB=ipip
```
#### Linux #### Linux
##### Use geoip db
``` ```
export NALI_DB=geoip export NALI_DB=geoip
``` ```
##### Use ipip db
```
export NALI_DB=ipip
```
## Thanks ## Thanks
- [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml) - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml)
@ -262,6 +280,8 @@ export NALI_DB=geoip
- [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service) - [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service)
- [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang) - [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang)
- [CDN provider数据库](https://github.com/SukkaLab/cdn) - [CDN provider数据库](https://github.com/SukkaLab/cdn)
- [IPIP数据库](https://www.ipip.net/product/ip.html)
- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go)
- [Cobra CLI库](https://github.com/spf13/cobra) - [Cobra CLI库](https://github.com/spf13/cobra)
- [Nali-cli](https://github.com/SukkaW/nali-cli) - [Nali-cli](https://github.com/SukkaW/nali-cli)

View File

@ -30,6 +30,7 @@
- 纯真 IPv4 离线数据库 - 纯真 IPv4 离线数据库
- ZX IPv6 离线数据库 - ZX IPv6 离线数据库
- Geoip2 城市数据库 (可选) - Geoip2 城市数据库 (可选)
- IPIP 数据库 (可选)
- CDN 服务提供商查询 - CDN 服务提供商查询
- 支持管道处理 - 支持管道处理
- 支持交互式查询 - 支持交互式查询
@ -248,16 +249,32 @@ $ nali update
#### Windows平台 #### Windows平台
##### 使用geoip数据库
``` ```
set NALI_DB=geoip set NALI_DB=geoip
``` ```
##### 使用ipip数据库
```
set NALI_DB=ipip
```
#### Linux平台 #### Linux平台
##### 使用geoip数据库
``` ```
export NALI_DB=geoip export NALI_DB=geoip
``` ```
##### 使用ipip数据库
```
export NALI_DB=ipip
```
## 感谢列表 ## 感谢列表
- [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml) - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml)
@ -267,6 +284,8 @@ export NALI_DB=geoip
- [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service) - [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service)
- [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang) - [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang)
- [CDN provider数据库](https://github.com/SukkaLab/cdn) - [CDN provider数据库](https://github.com/SukkaLab/cdn)
- [IPIP数据库](https://www.ipip.net/product/ip.html)
- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go)
- [Cobra CLI库](https://github.com/spf13/cobra) - [Cobra CLI库](https://github.com/spf13/cobra)
- [Nali-cli](https://github.com/SukkaW/nali-cli) - [Nali-cli](https://github.com/SukkaW/nali-cli)