Code Monkey home page Code Monkey logo

gphper / grm Goto Github PK

View Code? Open in Web Editor NEW
198.0 5.0 34.0 2.59 MB

redis可视化工具(gin+element-plus)【部署简单便捷,SSH连接,用户校验,操作日志、命令行模式、LUA脚本执行、Redis监控等】

License: Apache License 2.0

JavaScript 2.56% HTML 0.06% Vue 14.71% CSS 0.15% Go 82.08% Makefile 0.09% Shell 0.25% Batchfile 0.01% Dockerfile 0.09%
vue3 element-plus xterm-js golang gin redis-client database-gui redis-gui-client redis-gui visualizer

grm's Introduction

grm

vue3 go visitor

介绍 [Introduction]

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

功能清单

  • ✅ 管理连接(直连和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 srv run [-H 指定host] [-p 指定端口]`

方式二

* 项目根目录执行
  `docker build -t grmdocker:v1 .`
* 运行容器
  `docker run -d -p 宿主机端口:8088 grmdocker:v1`  

方式三

* 执行 `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;
}

持续更新中。。。

登录

login

服务管理

conn

数据展示

show

Terminal

cmd

添加数据

add

LUA脚本

lua

系统设置

tree

REDIS监控

moni

支持作者

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

grm's People

Contributors

gphper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grm's Issues

Need a Dockerfile

When I run the program inside docker, I always get this error:

cat log/service.log 

{"level":"error","time":"2022-11-21T10:08:44.617Z","msg":"Unix syslog delivery error\ngrm/cmd/run.GetSrv\n\t/opt/home/ops/data/grm/cmd/run/service.go:49\ngrm/cmd/run.runFunction\n\t/opt/home/ops/data/grm/cmd/run/root.go:74\ngithub.com/spf13/cobra.(*Command).execute\n\t/opt/home/ops/go/pkg/mod/github.com/spf13/[email protected]/command.go:876\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/opt/home/ops/go/pkg/mod/github.com/spf13/[email protected]/command.go:990\ngithub.com/spf13/cobra.(*Command).Execute\n\t/opt/home/ops/go/pkg/mod/github.com/spf13/[email protected]/command.go:918\nmain.main\n\t/opt/home/ops/data/grm/main.go:14\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/lib/golang/src/runtime/asm_amd64.s:1571","error":"Unix syslog delivery error"}

key 过滤不好用

image

这里的匹配不好用呢 ,总是出不来

image

再就是get的时候 一直卡主出不来,我的key 大概有2万多

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.