Code Monkey home page Code Monkey logo

redisfox's Introduction

RedisFox

Introduction

[Simplified Chinese]

RedisFox is a visual monitoring tool for Redis based on Golang development

redisfox

Latest Version Download

File Name Kind OS Size
redisfox1.0.2.darwin-amd64.tar.gz Archive MacOS 6M
redisfox1.0.2.linux-amd64.tar.gz Archive Linux 6M

Instructions

Suppose you have configured the Golang environment (the author uses the Go1.9.2 environment)

  1. Download RedisFox
git clone https://github.com/zer0131/RedisFox.git
  1. Dependency Package

The project uses glide to manage dependencies. First, you need to install glide in your environment

https://glide.readthedocs.io/en/latest/

Glide.yaml is configured under the src/redisfox directory

sh pkg.sh
  1. Compile and Install
sh build.sh
  1. Run

Configure the redis server in conf/redis-fox.yaml, open redis, and then execute the start.sh script

cd output
sh start.sh
  1. Visit

Open the browser to access http://127.0.0.1:8080 and see the monitoring status of redis态

  1. Stop
sh stop.sh

Directory Structure

├─bin                    Go compiled file directory
├─pkg                    Package directory used for Go compilation
├─src                    Source directory
│  ├─redisfox            Source code
├─conf                   Config directory
│  ├─redis-fox.yaml      Config file
├─log                    Log directory
├─data                   Data directory
├─static                 Resource directory
├─tpl                    Template directory
├─tool                   Tool directory
├─pkg.sh                 Get the Go dependency script
└─build.sh               Compile and install the script

Configuration Description

Configuration based on yaml syntax, do not understand the stamp herehttp://www.ruanyifeng.com/blog/2016/07/yaml.html

#!The same level of field indentation is the same, and can only be indented with space.
#!The relative "-" or ":" must have spaces before each field value value

#[Redis service configuration]

#redis server
servers:
 - server: 127.0.0.1
   port: 6379
   conntype: tcp
   password: 123456 #passport

#Get redis information interval time (second)
sleeptime: 30

#The maximum number of connections in the redis connection pool
maxidle: 3

#The maximum number of active redis connection pools, 0 unrestricted
maxactive: 3

#The redis connection pool connects the timeout time, and 0 indicates no timeout
idletimeout: 0

#Storage data type
datatype: sqlite
#Data storage path
datapath: ./data/redisfox.db

#Log
logpath: ./log/
logname: redisfox.log
loglevel: 4

#Web
serverip: 127.0.0.1
serverport: 8080
debugmode: 0

#Resource
staticdir: ./static/
tpldir: ./tpl/

Nginx

server {
    server_name wwww.xxxx.com;
    listen 80; # or 443
    # ssl on; Whether to enable encrypted connections
    # If you use HTTPS, you also need to fill in ssl_certificate and ssl_certificate_key

    location / { # If you want to access the subpath, this is changed to a subpath, pay attention to / begin and end / end
        proxy_pass http://127.0.0.1:8080/;
    }
    access_log  /your-path/nginx/logs/redisfox.log;
}

Glide

package: redisfox
import:
- package: github.com/garyburd/redigo
  version: ^1.4.0
  subpackages:
  - redis
- package: github.com/gin-gonic/gin
  version: ^1.2.0
- package: github.com/go-yaml/yaml
- package: github.com/mattn/go-sqlite3
  version: ^1.6.0
- package: golang.org/x/net
  repo: https://github.com/golang/net.git
- package: golang.org/x/sys
  repo: https://github.com/golang/sys.git

redisfox's People

Contributors

zer0131 avatar

Watchers

James Cloos avatar  avatar

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.