Set redis password after brew install on macos

vi /usr/local/etc/redis.conf
Add the line:
requirepass <your password>

And restart your redis service with brew services restart redis.