Redis Installation On Mac OS [Without Home Brew]-

1

The Redis source files are available from the download page – https://redis.io/download/To obtain the source files for the latest stable version of Redis from the Redis downloads site, run:

codallt@systemss-MacBook-Air ~ %  wget https://download.redis.io/redis-stable.tar.gz

Once the file is downloaded create a directory called Redis,move the file to the Redis directory and open the terminal, navigate to the Redis directory, and then follow the below steps

codallt@systemss-MacBook-Air ~ % mkdir Redis

Then copy the downloaded source file into the Redis directory/folder and follow the below steps.

codallt@systemss-MacBook-Air ~ % cd Redis
codallt@systemss-MacBook-Air Redis % tar xzf redis-7.2.3.tar.gz
codallt@systemss-MacBook-Air Redis % cd redis-7.2.3 
codallt@systemss-MacBook-Air redis-7.2.3 % make

If the compile succeeds, you’ll find several Redis binaries in the src directory, including:

  • redis-server: the Redis Server itself
  • redis-cli is the command line interface utility to talk with Redis.

Once the above process is completed make sure that you are in Redis/redis-7.2.3 directory, and run the below command

codallt@systemss-MacBook-Air redis-7.2.3 % src/redis-server 

After your redis server is up and running open another terminal window and follow below steps.make sure you are in the Redis/redis-7.2.3 directory

codallt@systemss-MacBook-Air redis-7.2.3 % src/redis-cli

If your redis server is running properly you will see below the connection

127.0.0.1:6379> 

To monitor the connection logs in cli type “MONITOR” in the connection and hit enter

127.0.0.1:6379> monitor
OK

Go to the below link to read more on the implementation of redis cache in spring boot application https://codallt.com/index.php/2023/11/18/implement-redis-cache-in-spring-boot-application/

1 thought on “Redis Installation On Mac OS [Without Home Brew]-

Leave a Reply

Your email address will not be published. Required fields are marked *