diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..554d1e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +backend/qqwry.dat \ No newline at end of file diff --git a/README.md b/README.md index 9d5a347..84e6449 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # echoIP ![license](https://img.shields.io/badge/license-MIT-orange.svg) -![version](https://img.shields.io/badge/version-v1.3-brightgreen.svg) +![version](https://img.shields.io/badge/version-v1.4-brightgreen.svg) ![total-lines](https://img.shields.io/tokei/lines/github/dnomd343/echoIP) > 显示客户端IP、查询IP详细信息 diff --git a/backend/qqwry.dat b/backend/qqwry.dat deleted file mode 100644 index dca1879..0000000 Binary files a/backend/qqwry.dat and /dev/null differ diff --git a/backend/queryInfo.php b/backend/queryInfo.php index 9d864ba..48ab864 100644 --- a/backend/queryInfo.php +++ b/backend/queryInfo.php @@ -251,7 +251,7 @@ function main() { routeParam(); // 处理请求参数 } -$myVersion = 'v1.3'; +$myVersion = 'v1.4'; $request = array( 'error' => false, diff --git a/docs/setup-docker.md b/docs/setup-docker.md index 4e47d08..92f1538 100644 --- a/docs/setup-docker.md +++ b/docs/setup-docker.md @@ -42,7 +42,9 @@ CONTAINER ID IMAGE COMMAND CREATED STATU 48d4b7a644e8 dnomd343/echoip "sh init.sh" 12 seconds ago Created echoip ``` -如果服务器1601端口未配置防火墙,在浏览器输入 `http://服务器IP:1601/` 即可访问echoIP页面 +如果服务器1601端口未配置防火墙,在浏览器输入 `http://服务器IP:1601/` 即可访问echoIP页面。 + +容器开启后会自动拉取 `qqwry.dat` 离线数据库,如果网络较慢可能需要数分钟时间,期间查询信息可能不完全。可以在htop等进程管理工具中查看docker内部进程,若监视到node服务运行则拉取完成。 ``` # 测试容器是否正常工作 diff --git a/docs/setup.md b/docs/setup.md index 4469093..5d005d1 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -39,10 +39,21 @@ shell> systemctl | grep fpm php7.3-fpm.service loaded active running The PHP 7.3 FastCGI Process Manager ``` -### 3. 运行数据解析服务 +### 3. qqwry.dat配置 + +获取并解密纯真IP数据库 + +``` +shell> cd /var/www/echoIP/backend +# 运行升级脚本 +shell> sh qqwryUpdate.sh +··· +qqwry.dat update complete. +``` + +开启数据解析服务 ``` -# qqwry.dat数据解析服务 shell> cd /var/www/echoIP/backend/qqwryFormat # 默认端口为1602,注意不要重复开启 shell> ./start.sh