This is as easy as copying this script on your terminal SECONDS=0Įcho "REDIS SETUP IN $SECONDS seconds :)"Įasy, isn’t it? I executed this snippet on my Mac (a 2 GHz Quad-Core Intel Core i5 machine) and this is easily done in much less than a minute, and I also have time to set a test key, and retrieve it, and drink a glass of water! bash-3.2$ src/redis-server &ġ3517:C 16:07:14.658 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Ooġ3517:C 16:07:14.659 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=13517, just startedġ3517:C 16:07:14.659 # Warning: no config file specified, using the default config. You can download, compile and run Redis on your Mac or Linux box (assuming you can indeed wget stuff from the internet, and compile C code!).
So back to this post, do you think you can setup Redis in less than 60 seconds? I challenge you, I will offer not one, but several alternatives to have Redis in your laptop (Mac or Linux) in that time, and spare some time to connect to it! Let’s see in detail five options to have a Redis server at hand:
open a new terminal window without closing the one where Redis is running.Finally now you can interact with Redis using the built-in client.You will be seeing all of the logs rolling in the following screen as you will use the Redis for database queries.Now the Redis has been started on the default port 6379 unless you have changed the Redis to run on a different port of your choice.use the following command to start the Redis as a standalone application.Finally our Redis installation on Mac is complete and we are ready to Run the Redis as standalone database on our Mac Book.Hint: It’s a good idea to run ‘make test’ ? As the make test was successful in our previous step so there is no need to worry about these messages.Ĭd src & /Library/Developer/CommandLineTools/usr/bin/make all.Once the clean installation test completes proceed to final installation by using the following command.Once the test (all of the test pass) for the clean installation completes you will see something like this.Use the following command to validate if redis can complete a clean installation.Open the Terminal Window and cd to your respective directory where redis was unzipped.
( in my case I unzipped it in the Documents)