This article covers how to install or uninstall Redis on VPS and Dedicated Servers using the EPEL repository.
Redis is an in-memory data structure store, used as a database, cache, and message broker. Redis is the de facto solution for caching in almost every application, can handle millions of queries per second, and offers high availability and scalability.
Related Article
SSH into VPS or Dedicated Server
Install Redis
IMPORTANT: Redis is only available on VPS and dedicated hosting.
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Install and update the EPEL repository
yum install epel-release yum update
- Install the Redis server
yum install redis
- Start the Redis service
systemctl start redis
IMPORTANT: If the above command fails, useservice redis start
instead. - Ensure that Redis starts automatically when the server is restarted
systemctl enable redis
IMPORTANT: If the above command fails, usechkconfig --add redis
instead. - Ensure that Redis is operational on the server
redis-cli ping
TIP: If successful, Redis will respond withPONG
.
Uninstall Redis
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Ensure that Redis does not start automatically when the server is restarted
systemctl disable redis
IMPORTANT: If the above command fails, usechkconfig --del redis
instead. - Stop the Redis service
systemctl stop redis
IMPORTANT: If the above command fails, useservice redis stop
instead. - Uninstall the Redis server
yum remove redis
Comments
0 comments
Article is closed for comments.