Giter Site home page Giter Site logo

baitongda / xm_zoomeye_redis_monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forcemain/xm_zoomeye_redis_monitor

0.0 1.0 0.0 1.05 MB

A very simple realtime redis monitor developed by flask+sqlite+redis

Python 2.83% CSS 0.12% JavaScript 95.36% HTML 1.16% Shell 0.46% Mako 0.07%

xm_zoomeye_redis_monitor's Introduction

# 安装说明
#>安装依赖
yum -y install python python-devel python-setuptools
easy_install --upgrade pip
pip install --upgrade -r requirements.txt


# 高级配置
#>初始数据
rm -rf <pwd>/migrations
rm -rf <pwd>/app/conf/rdsdata.db
vim app/conf/config.py
SQLALCHEMY_DATABASE_URI = 'sqlite:///app/conf/rdsdata.db'
#>数据迁移
python <pwd>/xmzoomeye-redis db init
python <pwd>/xmzoomeye-redis db migrate
python <pwd>/xmzoomeye-redis db upgrade
#>还原配置
vim app/conf/config.py
SQLALCHEMY_DATABASE_URI = 'sqlite:///conf/rdsdata.db'
#>设置监听
vim <pwd>/start_service.sh
(python ${prog_path} runserver -h 0.0.0.0 -p 8081 --threaded -r -D &>/dev/null)&
说明: -h 表示监听的地址, -p表示监听的端口, 如果无法启动请检查(lsof -i:port)IP或端口是否被占用

# 运行说明
cd <pwd>/xmzoomeye-redis
chmod u+x *.sh
./restart_service.sh

# 测试访问
curl http://127.0.0.1:8081/

xm_zoomeye_redis_monitor's People

Watchers

James Cloos 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.