You can follow these steps to install Redis on your Mac M1:
- Open Terminal by going to Launchpad > Other > Terminal.
- Install Homebrew by pasting this command in the Terminal and pressing Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- If you see error message: Warning: /opt/homebrew/bin is not in your PATH, run the following 2 commands:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') /Users/quest/.bash_profile eval "$(/opt/homebrew/bin/brew shellenv)"
- Once Homebrew is installed, update it by running this command:
brew update
- Now you can install Redis by running this command:
brew install redis
- After the installation is complete, start the Redis server by running this command:
brew services start redis
- To check if Redis is running, you can run the command:
redis-cli ping
If Redis is running, it will return «PONG» in the Terminal.
That’s it! Redis is now installed and running on your Mac M1.
I like this weblog very much, Its a rattling nice post to read and get information. «You have to lead people gently toward what they already know is right.» by Philip.