redis命令集

查看使用运行服务:ping
关闭服务的连接:quit
切换数据库:select index

连接:

redis-cli -h 127.0.0.1 -p 6379 -a myPassword

查看密码:

config get requirepass

设置密码:

config set requirepass newPassword

连接后进行验证:

auth myPassword
原文地址:https://www.cnblogs.com/hllive/p/7923905.html