Redis current limiting redis-cell module installation notes

table of Contents

0 Environment

  • System environment: centos7
  • Editor: xshell
  • IDE:IDEA

1 Introduction

reids mind map picture version summary

2 Text

# 设置下载位置
mkdir redis-cell

# 在该位置 下载包
wget https://github.com/brandur/redis-cell/releases/download/v0.2.5/redis-cell-v0.2.5-x86_64-unknown-linux-gnu.tar.gz

# 解压
tar -zxvf redis-cell/releases/download/v0.2.5/redis-cell-v0.2.5-x86_64-unknown-linux-gnu.tar.gz

# pwd 复制位置 修改redis.conf文件 加载新模块
vim redis.conf
# :/loadm 就能找到了
loadmodule pwd刚才的地址/libredis_cell.so
# esc :wq
# 重启redis
redis-server redis.conf
# 登陆进来 输入CL.THROTTLE命令 若是存在 说明安装成功
redis-cli -a 密码
CL.THROTTLE

Guess you like

Origin www.cnblogs.com/my-ordinary/p/12735705.html