If you are using a single server setup, where the application and redis are running on the same machine then you should not enable remote access. Perform the following steps only if you want to connect to your Redis server from remote hosts. You can connect to the Redis server only from 127.0.0.1 (local host) – the machine where redis is running. Configure Redis Remote Accessīy default, Redis doesn’t allow remote connections. To check the status of the service enter the following command: $ sudo systemctl status redis Redis check statusĬongratulations, at this point you have Redis installed and running on your CentOS 7 server. Now, Install the Redis package by typing: $ sudo yum install redis Install Redis Once the installation is completed, start the Redis service and enable it to start automatically on boot with: $ sudo systemctl start redis The installation is pretty straightforward, just follow the steps below: Start by enabling the Remi repository by running the following commands in your SSH terminal: $ sudo yum install epel-release yum-utils We will be installing Redis version 5.0.2 from the Remi repository. Redis package is not included in the default CentOS repositories. Prerequisitesīefore starting with the tutorial, make sure you are logged in as a user with sudo privileges. This tutorial explains how to install and configure Redis on an CentOS 7 server. The project is mainly developed by Salvatore Sanfilippo and is currently sponsored by Redis Labs. 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. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, hyperloglogs, bitmaps and spatial indexes. Redis is an open-source in-memory database project implementing a distributed, in-memory key-value store with optional durability.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |