Skip to content

Instantly share code, notes, and snippets.

@p3t3r67x0
Forked from lmj0011/rejson-for-ubuntu.md
Created December 24, 2019 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p3t3r67x0/c38d543cde1ae4513d59ec9f6e4dcf73 to your computer and use it in GitHub Desktop.
Save p3t3r67x0/c38d543cde1ae4513d59ec9f6e4dcf73 to your computer and use it in GitHub Desktop.
Building and Loading the ReJSON 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/RedisLabsModules/rejson.git

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

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