使用办法: 订阅端: Subscribe 频道名称 发布端: publish 频道名称 发布内容 r1:2>publish news "aaaaaa" "0" r1:2>publish news "bbbbb" "1" r1:2>publish news "rrrrr" "1" r1:2>publish news "dddddffffr1:2>" "2" 127.0.0.1:6379[2]> Subscribe news Reading messages... (press Ctrl-C to quit) 1) "subscribe" 2) "news" 3) (integer) 1 1) "message" 2) "news" 3) "bbbbb" 1) "message" 2) "news" 3) "rrrrr"