install redis fro centos code example
Example 1: install redis ubuntu
sudo apt update
sudo apt install redis-server
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
Example 2: install redis
brew install redis
sudo apt update
sudo apt install redis-server
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
brew install redis