一、常用命令
1、subscribe channel [channel]
说明:订阅一个或着多个频道
2、unsubscribe [channel …]
说明:退订一个活着多个频道,若没有指定频道,退订所有频道
3、publish channel message
说明:向指定的频道发送消息
4、psubscribe pattern [pattern]
说明:订阅与给定模式相匹配的所有频道
5、pubsub subcommand [arguement …]
说明:查看订阅与发布状态
6、punsubscribe [pattern…]
说明:退订所有符合模式的频道,没有pattern参数,退订所有频道