Skip to content

Instantly share code, notes, and snippets.

@lmj0011
Last active August 30, 2023 05:50
  • Star 20 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lmj0011/820eea392f6f43c755fadc2ba56b69e9 to your computer and use it in GitHub Desktop.
Building and Loading the ReJSON v1 Module on Linux Ubuntu 16.04 for Redis

make sure you have at least redis v4.0+

redis-server --version

redis-cli --version

install the build-essential package

apt-get install build-essential


git clone https://github.com/RedisJSON/RedisJSON.git

git checkout v1.0.3

cd rejson/

make

cd src/

mkdir /etc/redis/modules/

mv rejson.so /etc/redis/modules/

add this line to /etc/redis/redis.conf

loadmodule /etc/redis/modules/rejson.so

restart redis server

service redis-server restart

--

ref: https://oss.redislabs.com/rejson/#linux-ubuntu-1604

@tausifcreates
Copy link

can you please tell me how to know the path to load the the module

You can find librejson.so in release folder under build

@britisharmy
Copy link

@akshaysaini11
Copy link

please provide same as redis search install in Linux/Ubuntu
kindly provide commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment