惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
V
V2EX
PCI Perspectives
PCI Perspectives
Latest news
Latest news
博客园 - 三生石上(FineUI控件)
C
CERT Recently Published Vulnerability Notes
W
WeLiveSecurity
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
WordPress大学
WordPress大学
V
Vulnerabilities – Threatpost
H
Heimdal Security Blog
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
博客园 - 叶小钗
V
Visual Studio Blog
Jina AI
Jina AI
P
Proofpoint News Feed
罗磊的独立博客
SecWiki News
SecWiki News
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 热门话题
Security Archives - TechRepublic
Security Archives - TechRepublic
The Hacker News
The Hacker News
Hugging Face - Blog
Hugging Face - Blog
N
News and Events Feed by Topic
NISL@THU
NISL@THU
T
Tailwind CSS Blog
T
Tenable Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Recent Announcements
Recent Announcements
H
Hacker News: Front Page
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
Tor Project blog
宝玉的分享
宝玉的分享
Help Net Security
Help Net Security
S
Security Affairs
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
G
GRAHAM CLULEY

博客园 - py哥

rabbitmq集群docker部署 MongoDB副本集docker部署 MySQL8.0单实例部署 prometheus 监控 eureka 里面的服务状态 k8s网络与本地开发环境网络互通方案 CentOS7 FTP结合ssl/tls实现加密通信安装与配置 数据库运维平台 基于Docker构建Jenkins CI平台 KeepLived + nginx 高可用 k8s-1.16 二进制安装 Ansible自动化部署K8S集群 Kubernetes1.16下部署Prometheus+node-exporter+Grafana+AlertManager 监控系统 在Kubernetes下部署Prometheus docker部署coredns kubeadm部署多master节点高可用k8s1.16.2 二进制搭建一个完整的K8S集群部署文档 kubeadm部署k8s集群 Keepalived+LVS+nginx搭建nginx高可用集群 centos7 dns(bind)安装配置
Redis管理平台
py哥 · 2024-03-15 · via 博客园 - py哥

github地址:https://github.com/qq290070744/redis_admin

国内仓库码云地址:https://gitee.com/jiangwenhui_admin/redis_admin

分之说明
master为主开发分支,体验最新版本可clone该版本
Vx.x.x 为稳定发布版本
Python环境
python >= 3.10
mysql >= 8.0
clone项目和虚拟环境依赖安装
mkdir -p /data/wwwroot/ && cd /data/wwwroot
git clone https://gitee.com/jiangwenhui_admin/redis_admin.git redis_admin
cd redis_admin && pip install -r requirements.txt
数据库配置
配置文件在项目目录下conf/conf.py文件中

// 数据库信息
database = {
"name": "redis_admin",
"host": "127.0.0.1",
"username": "root",
"password": "root",
"port": "3306",
}

生成数据库表文件
python manage.py makemigrations
python manage.py migrate

创建管理员用户
python manage.py createsuperuser

启动 redis_admin
python manage.py runserver 8000

访问浏览器 http://ip:8000

项目配置文件说明
DEBUG
值:True/False
开启debug模式,使用请将其改为False

LOG_LEVEL
值:ERROR/WARNING/INFO/DEBUG
日志级别

socket_timeout
值: 2,数字
连接redis超时时间

scan_batch
值: 10000,数字
如果redis key过多避免导致性能问题,key列表最多获取值

mail_host
邮箱smtp服务器地址

mail_user
邮箱用户

mail_pass
邮箱密码

mail_receivers
邮件接收者

admin_mail
管理员邮箱

数据库信息
database = {
"name": "redis_admin", //数据库名称
"host": "127.0.0.1", //连接地址
"username": "root", //用户名
"password": "root", //密码
"port": "3306", //端口
}

添加redis
名称: 单机redis请注意唯一性, cluster请一致性
主机: redis主机地址
端口: redis端口
DB数: 请保持和redis配置文件中db数量一致
用户名: 支持填写redis6.x以上的用户名
密码: 如redis有密码请填写
如redis为cluster模式,请添加多个redis,名称保持一致并勾选类型为cluster

添加配置后请为用户配置redis权限,被授权用户需要退出登陆方可看的左侧菜单栏显示

编辑redis
这里只需要点击单元格信息即可进行修改,编辑按钮是为了提示信息

左侧菜单栏和权限相关联并进行了本地缓存,配置了redis后需要在用户管理中给相应用户授权,被授权用户需要退出重新登陆即可看到左侧菜单栏

这里可对用户进行管理,如添加,编辑,删除用户

重点: 添加redis配置后需要在此编辑用户,为用户授权redis并退出登陆后才可看到右侧菜单栏信息

下面是部分截图