INSTALL REDIS CLIENT HOW TO
This is the end of the tutorial where you learn how to install Redis on Amazon Linux or CentOS. Reading the configuration file, at line 163Ĭan't open the log file: Permission log]#įollow the below command to fix this issue: $ chmod o+x /var/log/ Some Basic Troubleshooting while Installing Redis: ~]# cat /var/log/redis/redis.logĢ1197:C 13 Nov 12:10:14.557 # Can't chdir to '/var/lib/redis': Permission deniedĬhmod o+x /var/lib/ log]# service redis start Root 25548 0.0 0.0 110460 2104 pts/0 S+ 09:36 0:00 grep -color=auto redis Step 7: Autostart Redis service on next boot $ chkconfig redis on Go to Redis Github Page and download redis zip. It provides cli utility for redis server and for client. Below are 3 options available in market to install different Redis Client/Server. Redis-cli is the Redis command line interface, a simple program that allows you to send commands directly from the terminal to Redis and read the servers replies.
INSTALL REDIS CLIENT UPDATE
Redis server listens on port 6379 you can update configuration in file “/etc/nf”Įg: Command to check Redis server listing on which port – herein below output Redis is listening on 6379 port $ ps aux | grep redis Redis is an in-memory data structure project that implements a potentially scalable distributed, in-memory key value repository. $ redis-cli ping Step 6: Redis server configuration file. Test Redis Installation: Command to check Redis is properly installed and working normally if the response is PONG from below command. $ service redis restart How to test Redis in Linux?īefore testing check Redis server is working, if not start the Redis service $ service redis start $ yum repolist Step 3: Install Redis on the server by running a command $ yum install redis Step 4: Check Redis status $ service redis status Commands to Start/Stop/Restart Redis service on Amazon Linux or CentOS $ service redis start Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Step 2: Clean all yum repo and update the repo list: $ yum clean all Name=Extra Packages for Enterprise Linux 6 - $basearch Step 1: Enable EPEL repository:Įnable EPEL (Extra Packages for Enterprise Linux) repository on the server. In this blog, we will see how to install Redis on Amazon Linux or CentOS, follow the below steps to install Redis v3.2 using YUM. Step 7: Autostart Redis service on next boot