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

连接:

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

查看密码:

config get requirepass

设置密码:

config set requirepass newPassword

连接后进行验证:

auth myPassword

相关文章:

  • 2022-01-01
  • 2021-08-07
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案