How do I run REDIS?


217
views
0
14 months ago by

REDIS is used by Payments for storing encrypted CV2s. When running locally, a local REDIS server will also need to be running. How do we set it up and use it?

1 Answer


0
14 months ago by

1) If 'wget' is installed, then go to 3). If 'brew' is installed, then go to 2). If 'brew' is not installed, then do this:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2) Once brew is installed, do this to install wget:

brew install wget

3) Navigate to the dir where REDIS should be installed

4) Now get the files for REDIS (can check http://redis.io/download for latest version if wanted):

wget http://download.redis.io/releases/redis-3.2.8.tar.gz

5) Run this: tar xzf redis-3.2.8.tar.gz

6) Run this: cd redis-3.2.8

7) Run this: make

8) Run the following to check everything is okay: make test

9) Start the server with this: src/redis-server

10) To monitor it, start a new Terminal and go to the same dir, then run this: src/redis-cli monitor

The monitoring will show the get/set commands going to the REDIS server from clients such as the Payments process.

Please login to add an answer/comment or follow this question.