Redis is a key value data store. The key values can be strings, lists, sets, hashes, and so on. It is extremely fast because the entire dataset is stored in the memory. The following are the steps to install Redis:
First, you will need to install
make
,gcc
, andcc
to compile the Redis code using the following command:sudo yum -y install make gcc cc
Download, unpack, and make Redis, and copy it to
/usr/local/bin
using the following commands:cd /home/$USER
Here,
$USER
is the name of the Linux user.http://download.redis.io/releases/redis-2.6.16.tar.gz tar -xvf redis-2.6.16.tar.gz cd redis-2.6.16 make sudo cp src/redis-server /usr/local/bin sudo cp src/redis-cli /usr/local/bin
Execute the following commands to make Redis as a service:
sudo mkdir -p /etc/redis sudo mkdir -p /var/redis cd /home/$USER/redis-2.6.16/ sudo cp utils/redis_init_script /etc/init.d/redis wget https://bitbucket.org/ptylr/public-stuff/raw/41d5c8e87ce6adb34aa16cd571c3f04fb4d5e7ac/etc/init.d...