美文网首页
Redis可视化工具

Redis可视化工具

作者: 码缘 | 来源:发表于2022-10-07 20:04 被阅读0次

    介绍 [Introduction]

    基于go+vue的web版redis管理工具【Web redis management tool based on golang and vue】

    地址

    https://github.com/gphper/grm

    功能清单

    • 管理连接(直连和SSH)、切换DB

    • 支持 string/list/set/zset/hash/stream 类型的增删查改

    • 编译打包成独立的二进制文件

    • 服务信息展示

    • 支持命令行

    • 用户鉴权

    • 操作日志

    • 支持LUA脚本

    • Redis监控

    编译代码

    • web目录下

      npm run build

    • grm目录下

      go build -ldflags "-s -w" .\main.go

    • 推荐使用upx再次压缩

      upx -9 main.exe -o grm.exe

    用户管理

    • 添加用户 grm user add

    • 删除用户 grm user delete

    运行项目

    • 执行 grm run -H ip地址 -p ip端口

    • 安装服务 grm run --install

    • 卸载服务 grm run --uninstall

    • 运行服务 grm run --start

    • 停止服务 grm run --stop

    • 访问地址 http://ip地址:ip端口/static/#/

    Nginx反向代理

    
    server {
    
          listen      80;
    
          server_name  www.xxx.com;
    
          location / {
    
            proxy_pass http://host:port;
    
              proxy_http_version 1.1;
    
              proxy_set_header Upgrade $http_upgrade;
    
              proxy_set_header Connection "Upgrade";
    
          }
    
    }
    
    

    使用已有域名的Nginx配置

    
    listen      80;
    
    server_name  www.xxx.com;
    
    location /grmapix/ {
    
        proxy_pass http://host:port;
    
        proxy_http_version 1.1;
    
        proxy_set_header Upgrade $http_upgrade;
    
        proxy_set_header Connection "Upgrade";
    
    }
    
    location ~ ^/grm/(.*) {
    
        proxy_pass http://host:port/$1;
    
    }
    
    

    持续更新中。。。

    登录

    [站外图片上传中...(image-c916fa-1665144212317)]

    服务管理

    [站外图片上传中...(image-4ae836-1665144212317)]

    数据展示

    [站外图片上传中...(image-86b376-1665144212317)]

    Terminal

    [站外图片上传中...(image-a6f6b-1665144212317)]

    添加数据

    [站外图片上传中...(image-8928fa-1665144212317)]

    LUA脚本

    [图片上传失败...(image-f93de2-1665144212317)]

    系统设置

    [站外图片上传中...(image-cb41fd-1665144212317)]

    REDIS监控

    [站外图片上传中...(image-d45335-1665144212317)]

    支持作者

    如果觉得这个项目对你有帮助的话,请留下一颗star ⭐⭐鼓励一下!
    If the project is helpful to you, please give a star to encourage me

    相关文章

      网友评论

          本文标题:Redis可视化工具

          本文链接:https://www.haomeiwen.com/subject/hribartx.html