Skip to content

Instantly share code, notes, and snippets.

@lmj0011
Last active November 4, 2024 10:18
Show Gist options
  • Save lmj0011/820eea392f6f43c755fadc2ba56b69e9 to your computer and use it in GitHub Desktop.
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

Hello people, who are having problems. Download the latest release tarball from here:
wget https://github.com/RedisJSON/RedisJSON/archive/refs/tags/v2.0.9.tar.gz

Then run cargo build --release from the root path.

@sasthrajyothi
Copy link

this works for me. ##install redisJson on 20.04

git clone https://github.com/RedisJSON/RedisJSON.git
cd RedisJSON
cargo build --release
cd target/release/
mkdir /etc/redis/modules/
mv librejson.so /etc/redis/modules/

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

loadmodule /etc/redis/modules/librejson.so
service redis-server restart

@sasthrajyothi
Copy link

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

@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