Skip to content

Instantly share code, notes, and snippets.

@britisharmy
Forked from lmj0011/rejson-for-ubuntu.md
Last active May 17, 2024 10:48
Show Gist options
  • Save britisharmy/ca0c3e37be4b20ccf2f9fc802c52ed63 to your computer and use it in GitHub Desktop.
Save britisharmy/ca0c3e37be4b20ccf2f9fc802c52ed63 to your computer and use it in GitHub Desktop.
Building and Loading the ReJSON v2.2.0 Module on Linux Ubuntu 20.04 for Redis
git clone https://github.com/RedisJSON/RedisJSON.git

git checkout v2.2.0

sudo apt-get install -y clang

curl https://sh.rustup.rs -sSf | sh

cd RedisJSON

cargo build --release
mkdir /etc/redis/modules/

cd RedisJSON/target/release

mv librejson.so /etc/redis/modules/

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

loadmodule /etc/redis/modules/librejson.so

restart redis server

sudo service redis-server restart

or just install redis stack

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update

sudo apt-get install redis-stack-server

https://redis.io/docs/stack/get-started/install/linux/

@akshaysaini11
Copy link

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

@LaryStef
Copy link

thanks a lot

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