Redis通过PUBLISH / SUBSCRIBE 等命令实现了订阅与发布模式 # 切换目录 [root@localhost /]# cd /opt/redis-4.0.10 # 启动客户端 -p 指定端口 [root@localhost ~]# redis-cli -p 6380 正则匹配