redis命令行启动和设置密码

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bestxianfeng163/article/details/86471290

参考网站:

https://www.cnblogs.com/springlight/p/6288902.html

登录 
无密码
redis-cli.exe -h 127.0.0.1 -p 6379

有密码
redis-cli.exe -h 127.0.0.1 -p 6379 -a 123456

登录进去再验证密码
auth 123456

查看密码

config get requirepass //获取当前密码

修改密码   windows下

进入  redis.windows.conf 

# requirepass foobared

 requirepass yourpassword  //此处注意,行前不能有空格

然后创建快捷方式

redis-server.exe

在快捷方式  目标加入启动的文件名

猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/86471290
今日推荐