To setup and install Redis®* server on any of the cloud platforms, the easiest way is to use the image available in the cloud marketplaces below. Redis® is an open source (BSD licensed), in-memory data structure store, used as a redis database, redis cache, and message broker.
Once connected and logged in, you’re ready to start configuring Redis.
Using Redis
Redis-server is configured to start automatically.
Check if Redis is working
External programs talk to Redis using a TCP socket and a Redis specific protocol. This protocol is implemented in the Redis client libraries for the different programming languages. However to make hacking with Redis simpler Redis provides a command line utility that can be used to send commands to Redis. This program is called redis-cli.
The first thing to do in order to check if Redis is working properly is sending a PING command using redis-cli and we should get a PONG reply as below:
redis-cli ping
Running redis-cli followed by a command name and its arguments will send this command to the Redis instance running on localhost at port 6379. You can change the host and port used by redis-cli, just try the –help option to check the usage information.
Another interesting way to run redis-cli is without arguments: the program will start in interactive mode, you can type different commands and see their replies.
redis-cli
Redis Default Configuration
Redis has been setup with the default configuration:
Listening port: 6379
Redis Config file on Ubuntu: /etc/redis/redis.conf
Redis Config file on CentOS: /etc/redis.conf
Logfile: The path to where you would like your logs stored can be set within the redis.conf under logfile ” “ line
Disclaimer: * Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Cloud Infrastructure Services Ltd is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Cloud Infrastructure Services Ltd
Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.
4.52votes
Article Rating
Subscribe
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.