Update the README doc for lua_c module

This commit is contained in:
lionsoul 2018-10-06 15:12:24 +08:00
parent 6fefefa9ae
commit 835d9c1b90
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ install:
@if [ -d $(LIB_DIR) ];\
then\
sudo cp $(SO_FILE) $(LIB_DIR);\
echo "install Ip2region successfully.";\
echo "install Ip2region to $(LIB_DIR) successfully.";\
else\
echo "Sorry, $(LIB_DIR) seems not not exits.";\
fi

View File

@ -1,7 +1,7 @@
# Lua ip2region c module binding
### 一,如安装
### 一,如安装
* 1, cd到ip2region/binding/lua_c/根目录
* 2, 运行如下命令
```
@ -70,4 +70,5 @@ print("city_id=", data.city_id, "region=", data.region);
```
### 四,备注
* 1Ip2region的c模块拥有和c模块几乎等同的性能生产建议使用lua_c模块代替纯lua模块的使用。
* 1c模块的Ip2region以来binding/c/的实现请保持binding/c/存在并且和lua_c模块同目录。
* 2Ip2region的c模块拥有和c模块几乎等同的性能生产建议使用lua_c模块代替纯lua模块的使用。