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

How to change the default password in redis

王林
Release: 2021-01-25 09:36:42
forward
4411 people have browsed it

How to change the default password in redis

Resource download:

(Learning video sharing: redis video tutorial)

https://github.com/MSOpenTech/redis/releases
Copy after login

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
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template