From 1e06f9cd61ebf98bd1135b98f94f1e28b1714235 Mon Sep 17 00:00:00 2001 From: zu1k Date: Wed, 22 Jul 2020 07:30:42 +0800 Subject: [PATCH] update readme --- README.md | 14 ++++++++++++++ README_zh-CN.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/README.md b/README.md index c0097b1..7c8181b 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,20 @@ export NALI_DB=geoip export NALI_DB=ipip ``` +### Change database directory + +If the database directory is not specified, the database will be placed in `~/.nali` + +Set environment variables `NALI_DB_HOME` to specify the database directory + +``` +set NALI_DB_HOME=D:\nalidb + +or + +export NALI_DB_HOME=/home/nali +``` + ## Thanks - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml) diff --git a/README_zh-CN.md b/README_zh-CN.md index a78f5c0..f8b84c0 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -275,6 +275,20 @@ export NALI_DB=geoip export NALI_DB=ipip ``` +### 更换数据库目录 + +如果未指定数据库存放目录,数据库默认将存放在 `~/.nali` + +设置环境变量 `NALI_DB_HOME` 来指定数据库目录 + +``` +set NALI_DB_HOME=D:\nalidb + +or + +export NALI_DB_HOME=/home/nali +``` + ## 感谢列表 - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml)