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.
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:
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 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
Documentation on using Redis can be found on : https://redis.io/documentation
Redis Firewall Ports
By default Redis is set to listen on port 6379
For a full list on the required firewall ports, review –
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls