配置redis-cell 控流插件

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个

相关推荐
悄悄敲敲敲8 小时前
MySQL表的约束
数据库·mysql
鼠爷ねずみ8 小时前
SpringCloud前后端整体开发流程-以及技术总结文章实时更新中
java·数据库·后端·spring·spring cloud
九皇叔叔8 小时前
MySQL 数据库 Read View 详解
数据库·mysql·mvcc·read view
召田最帅boy9 小时前
centos7安装Redis6并设置密码
redis·centos
Elastic 中国社区官方博客10 小时前
Elasticsearch:圣诞晚餐 BBQ - 图像识别
大数据·数据库·elasticsearch·搜索引擎·ai·全文检索
cui_win10 小时前
Prometheus实战教程 - Redis 监控
数据库·redis·prometheus
JIngJaneIL10 小时前
基于java + vue个人博客系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
TG:@yunlaoda360 云老大10 小时前
华为云国际站代理商备份策略设置过程中遇到问题如何解决?
服务器·数据库·华为云
SelectDB11 小时前
Doris Catalog 已上线!性能提升 200x,全面优于 JDBC Catalog,跨集群查询迈入高性能分析时代
数据库·数据分析·apache
逆袭的菜鸟X11 小时前
极简HTTP缓存类封装
缓存