1.下载绑定资源也可以到git上下载
https://gitee.com/dianjinshi/springboot-nginx.git
2.创建文件夹
mkdir redis-cell
3.上传到linux上并进入文件夹解压

4.拷贝
docker cp libredis_cell.so redis:/usr/local/etc/redis

5.重启redis
docker restart redis

6.进入redis查看下安装
docker exec -it redis bash
redis-cli
module list

使用
cl.throttle celltest 99 5 100 2
cl.throttle : 固定写法
celltest : 名字
99 : 存入100个令牌 0 -99
5 100 :每100秒生成5个令牌
2 : 每次取2个
