您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

redis如何修改默认密码

2024/12/3 8:12:12发布18次查看
资源下载:
(学习视频分享:redis视频教程)
https://github.com/msopentech/redis/releases
添加密码
redis.windows.conf,默认无密码
启动
redis-server.exe redis.windows.conf
如果redis-server.exe启动,无密码
登录
redis-cli.exe -h 127.0.0.1 -p 6379 -a 123456
(redis-cli.exe -h 127.0.0.1 -p 6379对应无密码服务启动,redis-cli.exe对应redis-server.exe直接启动)
查看密码
config get requirepass
添加到windows服务中
redis-server --service-install redis.windows.conf --loglevel verbose错误解决
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
修改redis.windows.conf
1、protected-mode yes 改为:protected-mode no
2、注释掉 #bind 127.0.0.1
相关教程:redis数据库教程
以上就是redis如何修改默认密码的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product