Home >Database >Redis >How to change the default password in redis

How to change the default password in redis

王林
王林forward
2021-01-25 09:36:424406browse

How to change the default password in redis

Resource download:

(Learning video sharing: redis video tutorial)

https://github.com/MSOpenTech/redis/releases

How to change the default password in redis

Add password

redis.windows.conf, default no password

How to change the default password in redis

Start

redis-server.exe redis.windows.conf

If redis-server.exe starts, no password

How to change the default password in redis

Login

redis-cli.exe -h 127.0.0.1 -p 6379 -a 123456

(redis-cli.exe -h 127.0.0.1 -p 6379 corresponds to passwordless service startup, redis-cli.exe corresponds to redis-server.exe direct startup)

View password

config get requirepass

How to change the default password in redis

Add to Windows service

redis-server --service-install redis.windows. conf --loglevel verbose error resolution
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: 192.168.1.102/192.168.1.102:6379
Caused by: java.net.ConnectException : Connection refused: no further information

Modify redis.windows.conf

1, protected-mode yes to: protected-mode no

2, comment Drop #bind 127.0.0.1

Related tutorials: redis database tutorial

The above is the detailed content of How to change the default password in redis. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete