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

I downloaded the Redis Source Code by run…


This content originally appeared on DEV Community and was authored by Abdussalam Mujeeb-ur-rahman

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
  • I downloaded the Redis Source Code by running:
    curl -O https://download.redis.io/releases/redis-6.2.11.tar.gz

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
  • I did run the make command to compile Redis:
    make
  • After the build and compilation was executed successfully, I proceeded to installing Redis:
 sudo make install
  • I started the Redis server manually:
 redis-server
  • I opened another terminal and connected to the Redis server by running the following:
 redis-cli
  • To verify it was working, I did run the PING command:
PING

As expected, I got the PONG response.

I hope it helps. Thanks for reading 😊


This content originally appeared on DEV Community and was authored by Abdussalam Mujeeb-ur-rahman


Print Share Comment Cite Upload Translate Updates
APA

Abdussalam Mujeeb-ur-rahman | Sciencx (2025-01-07T00:02:25+00:00) How to Install and Run Redis Directly on macOS (Without Homebrew). Retrieved from https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/

MLA
" » How to Install and Run Redis Directly on macOS (Without Homebrew)." Abdussalam Mujeeb-ur-rahman | Sciencx - Tuesday January 7, 2025, https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/
HARVARD
Abdussalam Mujeeb-ur-rahman | Sciencx Tuesday January 7, 2025 » How to Install and Run Redis Directly on macOS (Without Homebrew)., viewed ,<https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/>
VANCOUVER
Abdussalam Mujeeb-ur-rahman | Sciencx - » How to Install and Run Redis Directly on macOS (Without Homebrew). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/
CHICAGO
" » How to Install and Run Redis Directly on macOS (Without Homebrew)." Abdussalam Mujeeb-ur-rahman | Sciencx - Accessed . https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/
IEEE
" » How to Install and Run Redis Directly on macOS (Without Homebrew)." Abdussalam Mujeeb-ur-rahman | Sciencx [Online]. Available: https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/. [Accessed: ]
rf:citation
» How to Install and Run Redis Directly on macOS (Without Homebrew) | Abdussalam Mujeeb-ur-rahman | Sciencx | https://www.scien.cx/2025/01/07/how-to-install-and-run-redis-directly-on-macos-without-homebrew/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.