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
  • Save p3t3r67x0/c38d543cde1ae4513d59ec9f6e4dcf73 to your computer and use it in GitHub Desktop.
Save p3t3r67x0/c38d543cde1ae4513d59ec9f6e4dcf73 to your computer and use it in GitHub Desktop.

Revisions

  1. @lmj0011 lmj0011 revised this gist Sep 22, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@

    ---

    ```
    ```sh
    git clone https://github.com/RedisLabsModules/rejson.git

    cd rejson/
  2. @lmj0011 lmj0011 revised this gist Sep 22, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,7 @@

    ---

    ```
    git clone https://github.com/RedisLabsModules/rejson.git
    cd rejson/
    @@ -22,6 +23,7 @@ cd src/
    mkdir /etc/redis/modules/
    mv rejson.so /etc/redis/modules/
    ```


    ### add this line to /etc/redis/redis.conf
  3. @lmj0011 lmj0011 revised this gist Sep 22, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    ### make sure you have redis v4.0+
    ### make sure you have at least redis v4.0+

    `redis-server --version`

    `redis-cli --version`


  4. @lmj0011 lmj0011 revised this gist Sep 22, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    # make sure you have redis v4.0+
    ### make sure you have redis v4.0+

    `redis-server --version`
    `redis-cli --version`


    # install the build-essential package
    ### install the build-essential package

    `apt-get install build-essential`

    @@ -23,11 +23,11 @@ mkdir /etc/redis/modules/
    mv rejson.so /etc/redis/modules/


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

    `loadmodule /etc/redis/modules/rejson.so`

    # restart redis server
    ### restart redis server

    `service redis-server restart`

  5. @lmj0011 lmj0011 revised this gist Sep 22, 2018. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    ## Building and Loading the ReJSON Module on Linux Ubuntu 16.04 for Redis

    # make sure you have redis v4.0+

    `redis-server --version`
  6. @lmj0011 lmj0011 created this gist Sep 22, 2018.
    38 changes: 38 additions & 0 deletions rejson-for-ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    ## Building and Loading the ReJSON Module on Linux Ubuntu 16.04 for Redis

    # make sure you have 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