Installation with Homebrew
Homebrew is the standard route on macOS. The redis formula provides both the server (redis-server) and the client (redis-cli). The installation prefix depends on the architecture: /opt/homebrew on Apple Silicon (M1/M2/M3…), /usr/local on Intel. Use brew --prefix to remove any ambiguity.
Running as a service
brew services start redis registers Redis as a launchd agent that restarts automatically at login. For one-off use without a service, run redis-server /opt/homebrew/etc/redis.conf directly in the foreground. Then verify connectivity with redis-cli ping, which should respond PONG.
Common pitfalls
By default, Redis is only bound to 127.0.0.1 and does not require a password: never expose it on a public interface without setting requirepass and a firewall. If port 6379 is already taken, adjust port in the configuration file then restart the service.