Is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
We will learn how to How to Install Redis on Linux server with CentOS 6.7.
- CentOS 6.7 server
- Access server via SSH with root user permission
Step 1 — Enable EPEL repository
First we need to enable EPEL (Extra Packages for Enterprise Linux) repository on server.
$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
If wget command not found, try running yum install wget then run the above command.
Now run command:
$ rpm -ivh epel-release-7–5.noarch.rpm
Step 2 — Install redis
Install redis on server by running command:
$ yum install redis -y
Check status redis:
$ service redis status
Start/Stop/Restart redis server:
$ service redis start|stop|restart
Test redis installation: $ redis-cli ping . If the response output is PONG, that mean installation is completed successfully.
Step 3 — Configuration redis server
Edit configuration follow path /etc/redis.conf . Don’t forget restart redis.
Listing port of redis server:
$ ps aux | grep redis