File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,8 @@ Alternatively, ngx_lua can be manually compiled into Nginx:
3523521 . Download the latest version of the ngx_devel_kit (NDK) module [ HERE] ( https://github.com/simplresty/ngx_devel_kit/tags )
3533531 . Download the latest version of ngx_lua [ HERE] ( https://github.com/openresty/lua-nginx-module/tags )
3543541 . 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
356358Build 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 )
Original file line number Diff line number Diff 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
287289Build 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 ==
You can’t perform that action at this time.
0 commit comments