Skip to content

Commit bbbc47b

Browse files
janithcoorayzhuizhuhaomeng
authored andcommitted
doc: added installation info
1 parent 33c760f commit bbbc47b

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.markdown

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,29 @@ each request.
680680

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

683-
Installation
683+
Installation - Build from source
684+
============
685+
686+
```sh
687+
# Clone latest release , assuming v0.29
688+
wget https://github.com/openresty/lua-resty-redis/archive/refs/tags/v0.29.tar.gz
689+
690+
# Extract
691+
tar -xvzf v0.29.tar.gz
692+
693+
# go into directory
694+
cd lua-resty-redis-0.29
695+
696+
export LUA_LIB_DIR=/usr/local/openresty/site/lualib
697+
698+
# Compile and Install
699+
make install
700+
701+
# Now compiled path will be outputted
702+
# /usr/local/lib/lua/resty = lua_package_path in nginx conf
703+
```
704+
705+
Installation Notes
684706
============
685707

686708
If you are using the OpenResty bundle (http://openresty.org ), then

0 commit comments

Comments
 (0)