Skip to content

Commit 37ec9f7

Browse files
kfangzhuizhuhaomeng
authored andcommitted
doc: Readme: completed the Installation part, with add lua-resty-core and lua-resty-lrucache.
1 parent 94fa662 commit 37ec9f7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.markdown

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ Alternatively, ngx_lua can be manually compiled into Nginx:
352352
1. Download the latest version of the ngx_devel_kit (NDK) module [HERE](https://github.com/simplresty/ngx_devel_kit/tags)
353353
1. Download the latest version of ngx_lua [HERE](https://github.com/openresty/lua-nginx-module/tags)
354354
1. Download the latest supported version of Nginx [HERE](https://nginx.org/) (See [Nginx Compatibility](#nginx-compatibility))
355+
1. Download the latest version of the lua-resty-core [HERE](https://lua-resty-core)
356+
1. Download the latest version of the lua-resty-lrucache [HERE](https://github.com/openresty/lua-resty-lrucache)
355357

356358
Build the source with this module:
357359

@@ -383,6 +385,18 @@ Build the source with this module:
383385
# machine.
384386
make -j2
385387
make install
388+
389+
# Note that this version of lug-nginx-module not allow to set `lua_load_resty_core off;` any more.
390+
# So, you have to install `lua-resty-core` and `lua-resty-lrucache` manually as below.
391+
392+
cd lua-resty-core
393+
make install PREFIX=/opt/nginx
394+
cd lua-resty-lrucache
395+
make install PREFIX=/opt/nginx
396+
397+
# add necessary `lua_package_path` directive to `nginx.conf`, in the http context
398+
399+
lua_package_path "/opt/nginx/lib/lua/?.lua;;";
386400
```
387401

388402
[Back to TOC](#table-of-contents)

doc/HttpLuaModule.wiki

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ Alternatively, ngx_lua can be manually compiled into Nginx:
283283
# Download the latest version of the ngx_devel_kit (NDK) module [https://github.com/simplresty/ngx_devel_kit/tags HERE]
284284
# Download the latest version of ngx_lua [https://github.com/openresty/lua-nginx-module/tags HERE]
285285
# Download the latest supported version of Nginx [https://nginx.org/ HERE] (See [[#Nginx Compatibility|Nginx Compatibility]])
286+
# Download the latest version of the lua-resty-core [HERE](https://lua-resty-core)
287+
# Download the latest version of the lua-resty-lrucache [HERE](https://github.com/openresty/lua-resty-lrucache)
286288
287289
Build the source with this module:
288290

@@ -313,6 +315,18 @@ Build the source with this module:
313315
# machine.
314316
make -j2
315317
make install
318+
319+
# Note that this version of lug-nginx-module not allow to set `lua_load_resty_core off;` any more.
320+
# So, you have to install `lua-resty-core` and `lua-resty-lrucache` manually as below.
321+
322+
cd lua-resty-core
323+
make install PREFIX=/opt/nginx
324+
cd lua-resty-lrucache
325+
make install PREFIX=/opt/nginx
326+
327+
# add necessary `lua_package_path` directive to `nginx.conf`, in the http context
328+
329+
lua_package_path "/opt/nginx/lib/lua/?.lua;;";
316330
</geshi>
317331

318332
== Building as a dynamic module ==

0 commit comments

Comments
 (0)