From 035d396c4fcaca022f45566b70bb19dfb2790849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=93=99=F0=9D=93=BE=F0=9D=93=B5=F0=9D=93=B2?= =?UTF-8?q?=F0=9D=93=B8?= Date: Mon, 24 Feb 2025 16:03:23 +0100 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e88b54d..15cdcb5 100644 --- a/README.md +++ b/README.md @@ -83,12 +83,20 @@ LUA RESTY CORE SCRIPTS = /usr/nginx_lua ``` ## How to install lua scripts -```bash -. /root/The-World-Is-Yours/version -cd /opt/mod/; git clone https://github.com/openresty/lua-resty-lrucache.git -cd /opt/mod/lua-resty-lrucache; make install PREFIX=${LUA_SCRIPTS} -nginx -s reload -``` + +- Method 1 + ```bash + . /root/The-World-Is-Yours/version + cd /opt/mod/; git clone https://github.com/openresty/lua-resty-lrucache.git + cd /opt/mod/lua-resty-lrucache; make install PREFIX=${LUA_SCRIPTS} + nginx -s reload + ``` +- Method 2 + ```bash + # At first when you use this method you may get errors for missing lua scripts, you can install them with "luarocks". + apt-get install luarocks + luarocks install lua-resty-lrucache + ``` # Support options.