From 2c53083ad9088b42b26568c23a49d48727aa16ac Mon Sep 17 00:00:00 2001 From: Wu Jian Ping Date: Thu, 30 Mar 2023 22:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binding/nginx/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/binding/nginx/README.md b/binding/nginx/README.md index 152a022..0be617d 100644 --- a/binding/nginx/README.md +++ b/binding/nginx/README.md @@ -1,9 +1,10 @@ # nginx-ip2region -## 编译 +## Build ```shell -$ mkdir ip2region +$ mkdir -p workspace +$ cd workspace $ wget https://nginx.org/download/nginx-1.23.4.tar.gz $ tar -zxf nginx-1.23.4.tar.gz && rm -rf nginx-1.23.4.tar.gz $ git clone https://github.com/lionsoul2014/ip2region.git @@ -14,9 +15,9 @@ $ make $ make install ``` -## Nginx 配置 +## Nginx conf -> Syntax: `ip2region_db xdb_file_path` [cache_policy 可选]; +> Syntax: `ip2region_db xdb_file_path [cache_policy 可选]`; > Context: http cache_policy: `file` or `vectorIndex` or `content`, default: `content` @@ -33,7 +34,7 @@ http { access_log logs/access.log main; - # 设置xdb文件路径 + # set xdb file path ip2region_db ip2region.xdb; server { -- GitLab