Redis - mac - change password

1. Find the configuration file redis.conf file

Path (everyone's directory is different):

/usr/local/etc/redis.conf

or

 /usr/local/redis/redis.conf

2. Query # requirepass foobared

Press command+f to query # requirepass foobared

change to

requirepass your password

3. Restart redis to load the redis.conf file

(1) Enter the redis root directory

cd /usr/local/Cellar/redis/6.2.6/bin

(2) close redis

redis-cli shutdown

(3) Start and read the configuration file

redis-server /usr/local/etc/redis.conf

Guess you like

Origin blog.csdn.net/hutuyaoniexi/article/details/127865131