1、连接到redis ./bin/redis-cli -c -h 127.0.0.1 -p 6379 -a xxxxxxxx

redis 订阅者与发布者(命令行)

 

 

2、 订阅管道 subscribe list1  订阅list1

redis 订阅者与发布者(命令行)

 

 

 

3、发布信息  publish list1 “content”

redis 订阅者与发布者(命令行)

 

 

4、订阅着接受到的消息

 

 

相关文章:

  • 2021-10-18
  • 2021-12-11
  • 2022-12-23
  • 2022-01-08
  • 2019-09-24
  • 2021-12-27
  • 2021-12-04
猜你喜欢
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
相关资源
相似解决方案