
We can now check if the redis has been installed by running the following command, So just change the port number to start only a single redis instance. Now to start the redis service, command is a bit different as service name will be different,
#INSTALL REDIS CLI LINUX INSTALL#
Modify any settings as per your requirements & can also install more than one redis instances by just changing the redis port number. Is this ok? Then press ENTER to go on or Ctrl-C to abort.Ĭopied /tmp/nf => /etc/init.d/redis_6379 Please select the redis executable path Ĭli Executable : /usr/local/bin/redis-cli Please select the data directory for this instance Selected default – /var/log/redis_6379.log Please select the redis config file name Please select the redis port for this instance: This script will help you easily set up a running redis server We will now be asked with some information regarding redis server, as shown below, Once these commands have been executed, we will install the init scripts, init script will setup a redis service with port number, config file, log file & a data directory. Next, we will move back to the main directory i.e. Download the redis package with the following command, We will installing the latest version at this time, i.e. With this method, we can install the latest version of redis or for that matter any version we need. Start service using the following command,Īnother method to install Redis on CentOS Once the epel repository has been installed, we can install redis with the following command, Redis packages are available on EPEL repository, so we are required to install the EPEL repository on our CentOS/ RHEL system first. So let’s start the process to install Redis on CentOS or RHEL.

#INSTALL REDIS CLI LINUX HOW TO#
Recommended Read: Install Redis on UbuntuĪlso Read: How to Host Multiple Websites with Nginx in Linux It also provides a number of features like, We can use a number of data types with redis like strings, lists, maps, sets, sorted sets, HyperLogs, bitmaps, streams, and spatial indexes. Redis is an open-source in-memory key-value data structure store that can be used as a cache server, message broker, etc.
