# grm **Repository Path**: gphper/grm ## Basic Information - **Project Name**: grm - **Description**: redis web端管理工具(gin+element-plus)【部署简单便捷,SSH连接,用户校验,操作日志、命令行模式、LUA脚本执行等】 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2022-08-02 - **Last Updated**: 2023-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

grm

![vue3](http://img.shields.io/badge/vue3-element--plus-blue.svg?style=flat-square) ![go](http://img.shields.io/badge/go-gin-blue.svg?style=flat-square) ![visitor](https://visitor-badge.glitch.me/badge?page_id=gphper.grm) ### 介绍 [Introduction] 基于go+vue的web版redis管理工具【Web redis management tool based on golang and vue】 ### 功能清单 - :white_check_mark: 管理连接(直连和SSH)、切换DB - :white_check_mark: 支持 string/list/set/zset/hash/stream 类型的增删查改 - :white_check_mark: 编译打包成独立的二进制文件 - :white_check_mark: 服务信息展示 - :white_check_mark: 支持命令行 - :white_check_mark: 用户鉴权 - :white_check_mark: 操作日志 - :white_check_mark: 支持LUA脚本 - :white_check_mark: 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; } ``` * 访问地址 http://www.xxx.com/grm/static/#/ ## 持续更新中。。。 ### 登录 ![login](https://user-images.githubusercontent.com/18718299/180608188-9d7a3d97-3c4c-40ea-bcfe-444ed0fc2900.gif) ### 服务管理 ![conn](https://user-images.githubusercontent.com/18718299/179389039-d626c654-2874-40e0-951b-27a759d66192.gif) ### 数据展示 ![show](https://user-images.githubusercontent.com/18718299/179389052-2229d782-3551-4e07-81e1-6ed8e58d8776.gif) ### Terminal ![cmd](https://user-images.githubusercontent.com/18718299/179389058-039fd95d-3f59-49e2-8141-c994964aa7b0.gif) ### 添加数据 ![add](https://user-images.githubusercontent.com/18718299/179389065-98829c30-6098-44de-8471-5ba24be6aab1.gif) ### LUA脚本 ![lua](https://user-images.githubusercontent.com/18718299/183094603-533e7f6f-8f20-4f3d-9f0d-27508936f8fe.gif) ### 系统设置 ![tree](https://user-images.githubusercontent.com/18718299/184534033-9c6cf55c-9752-4293-8baf-e5fd874f2959.gif) ### REDIS监控 ![moni](https://user-images.githubusercontent.com/18718299/189467120-1ad4a4fc-1a89-4ed3-a84b-1b83f48d5c10.gif) ## 支持作者 如果觉得这个项目对你有帮助的话,请留下一颗star ⭐⭐鼓励一下! If the project is helpful to you, please give a star to encourage me