Logo

dev-resources.site

for different kinds of informations.

How to Install and Run Redis Directly on macOS (Without Homebrew)

Published at
1/7/2025
Categories
redis
cli
Author
allahisrabb
Categories
2 categories in total
redis
open
cli
open
Author
11 person written this
allahisrabb
open
How to Install and Run Redis Directly on macOS (Without Homebrew)

To install Redis without using Homebrew on my macOS, I had to build it from source. Hereโ€™s how I did it:

  • I installed Xcode Command Line Tools by running (in my terminal):
    xcode-select --install
Enter fullscreen mode Exit fullscreen mode
  • I downloaded the Redis Source Code by running:
    curl -O https://download.redis.io/releases/redis-6.2.11.tar.gz
Enter fullscreen mode Exit fullscreen mode

You can always check Redis releases to download any of your choice.

  • I extracted the file I downloaded by running:
    tar -xvzf redis-6.2.11.tar.gz
    cd redis-6.2.11
Enter fullscreen mode Exit fullscreen mode
  • I did run the make command to compile Redis:
    make
Enter fullscreen mode Exit fullscreen mode
  • After the build and compilation was executed successfully, I proceeded to installing Redis:
 sudo make install
Enter fullscreen mode Exit fullscreen mode
  • I started the Redis server manually:
 redis-server
Enter fullscreen mode Exit fullscreen mode
  • I opened another terminal and connected to the Redis server by running the following:
 redis-cli
Enter fullscreen mode Exit fullscreen mode
  • To verify it was working, I did run the PING command:
PING
Enter fullscreen mode Exit fullscreen mode

As expected, I got the PONG response.

I hope it helps. Thanks for reading ๐Ÿ˜Š

redis Article's
30 articles in total
Favicon
Protect Your APIs from Abuse with FastAPI and Redis
Favicon
Token Bucket Rate Limiter (Redis & Java)
Favicon
A Simple Guide to Connect to Amazon ElastiCache Redis from Outside of Amazon
Favicon
Caching in Node.js: Using Redis for Performance Boost
Favicon
How to Install and Run Redis Directly on macOS (Without Homebrew)
Favicon
Install Redis Locally in Windows
Favicon
Redis: Powering Real-Time Applications with Unmatched Performance
Favicon
Why does clustering with redis suck?
Favicon
Fixed Window Counter Rate Limiter (Redis & Java)
Favicon
Redis Data Structures
Favicon
Pub-sub Redis in Micronaut
Favicon
Real-Time Data Indexing: Powering Instant Insights and Scalable Querying
Favicon
How to Implement Caching in PHP and Which Caching Techniques Are Best for Performance?
Favicon
tnfy.link - One more shortener?
Favicon
Lettuce - A Java Redis Client
Favicon
Introducing keyv-upstash: Seamless Key-Value Storage for Serverless Redis
Favicon
Sherlock Holmes: The Case Of Redis Overload During a DDoS Attack
Favicon
Real-Time Location Tracking with Laravel and Pulsetracker's Redis Pub/Sub
Favicon
Redis Cache - A String story
Favicon
Working on Redis streams? Don't forget these commands.
Favicon
Caching with Redis for Backend in Apache Superset
Favicon
Redis Queue and Cron in Go
Favicon
Infinite redis request
Favicon
Rate limiting with Redis: An essential guide
Favicon
What do 200 electrocuted monks have to do with Redis 8, the fastest Redis ever?
Favicon
FLAIV-KING Weekly (Flink AI Vectors Kafka) for 18 Nov 2024
Favicon
Building a Real-Time Flask and Next.js Application with Redis, Socket.IO, and Docker Compose
Favicon
Spring Boot + Redis: A Beginner-Friendly Guide to Supercharging Your Appโ€™s Performance
Favicon
Boosting Speed and Performance with Advanced Caching in NestJS: How to Use AVL Trees and Redis
Favicon
I used GitHub as a CMS

Featured ones: