zoukankan      html  css  js  c++  java
  • servicestack Redis Admin UI & redis data virsualization

    http://www.servicestack.net/

    A modern, code-first, DTO-driven, WCF replacement web services framework encouraging best-practices for creating DRY, high-perfomance, scalable REST web services

    The Redis Admin UI is an ASP.NET web application that lets you manage and visualize your Redis data. It is primarily 
    It requires .NET and IIS installed to run on Windows, and Mono installed to run on Linux and OSX platforms.
    
    WARNING: The Redis Admin UI exposes all Redis operations (including FLUSHALL) as Web Services so you only want to host it inside a trusted network.
    You will need to add your own infrastructure security (e.g. VPN) if you want to host it on the Internet as you will effectively giving everyone full access to your Redis data.
    
    
    == INSALLING ON WINDOWS ==
    
    The recommend way to host this application is to use IIS:
    1. Run IIS Manager Console
    2. Right-click on the 'Default Web Site' on the tree view in the left side bar
    3. Click on 'Add Application' 
    4. Set the Alias to 'RedisAdminUI' and the Physical path to the base path of the application
    5. Modify the appSettings in the Web.config to point it your Redis instance
    6. Open 'http://localhost/RedisAdminUi/' in a browser to run the application
    
    
    == INSALLING ON LINUX/OSX ==
    
    1. If you haven't already done so download and install Mono from their download page:
    http://www.go-mono.com/mono-downloads/download.html
    
    2. Configure the application to point to the Redis instance you want to view. To do this modify the <appSettings/> in the 'Web.config' file which defaults to:
    
    <appSettings>
    	<add key="RedisHostAddress" value="localhost:6379"/>
    	<add key="RedisDb" value="0"/>
    </appSettings> 
    
    
    For a temp but immediate solution you can simply run mono's embedded appserver 'xsp' on the base directory (where the Web.config file is).
    This will run the application on port 8080 by default so you can run the application by opening the url:
    
    http://localhost:8080/RedisAdminUi/
    
    
    For a more permanent solution you will want to configure mono and the application to run on your preferred web server.
    
    To run it on Apache with mod_mono follow this guideline:
    http://mono-project.com/Mod_mono
    
    You can also host it inside any web server that supports FastCGI, if you're using nginx follow this guideline:
    http://mono-project.com/FastCGI_Nginx
    
    
    If the application is configured correctly you can run it by opening this url:
    http://localhost/RedisAdminUi/
    
    
    
    == TROUBLE SHOOTING ==
    
    Once you have the application installed you should test it to see if its configured and installed properly.
    
    Since the client are just static html/js/css (i.e. nothing can go wrong) the only thing we need to test is that the server. 
    To do this we can just call any of the web services listed here:
    
    http://localhost/RedisAdminUi/Public/Metadata
    
    Here are couple of examples using the XML endpoint:
    http://localhost/RedisAdminUi/Public/Xml/SyncReply/GetServerInfo
    http://localhost/RedisAdminUi/Public/Xml/SyncReply/SearchKeysGroup?Pattern=urn:c*
    
    If the results don't return a 404 or 500 then everything looks good and you can run confidentally try out the client on this url:
    
    http://localhost/RedisAdminUi/
    
    
    == FINAL WORDS ==
    
    As the Redis Admin UI is Open source and since all Redis operations are available as web services you can add any additional functionality to the UI using basic javascript and html. If you're keen to do this I recommend checking out the development version from the svn repo:
    
    http://code.google.com/p/servicestack/source/browse/#svn/trunk/Common/ServiceStack.Redis/RedisWebServices
    
    You can ask questions or provide feedback on the redis mailing list:
    http://groups.google.com/group/redis-db/topics
    
    And you can file any issues you have with Admin UI here:
    http://code.google.com/p/servicestack/issues/list



    Redis beginner’s guide

    1. Redis web admin UI
    Redis-admin:
        The only redis admin ui written in php found till now. But lake of testing, personally not run it successful.
    Ref url: http://code.google.com/p/redis-admin/ PHP
    RedisAdminUI:
        This project based on C# and ajax, so you should run under Windows server, or install mono under Linux.
        But you can simply put XSP under the project directory to setup it.
        Ref url: http://www.servicestack.net/mythz_blog/?p=381 .net + XSP
        Online Example: http://www.servicestack.net/RedisAdminUI/AjaxClient/#
    Redweb:
        Web interface of Redis written in Python.
        Ref url: https://github.com/kennyshen/redweb
    RedisCover:
        Web interface of Redis written in Ruby.

    2. Advantage of Redis
    Get Unique IDs just one query:
        INCR <object>
    Atomic Opertion:
        MULTI
        …
        EXEC
    Multiple Databases:
        SELECT 3
        The default database will be 0.
    Pub/Sub Asynchronous message
        SUBSCRIBE room:a
        PUBLISH room “message”
        UNSUBSCRIBE room
    Simple FIFO Queue
        LPUSH queue1 a
        …
        RPOP queue1

    Also see:

    Ref: Web Development Blog
    Please try the Free Note Taking App.
    http://yale.iteye.com/blog/1168487

    Google 的BigTable与Amazon的Dynamo是非常成功的商业 NoSQL 实现,一些开源的 NoSQL 体系,如Cassandra、HBase、memcache、memlink、redis其实也都不是不错的选择,并且开源。

    在我的blog中我曾经介绍过几种nosql的数据库以及相关的使用,如memcache、memlink、redis、Cassandra,但是上述这些nosql的管理工作需要在命令行中完成,有些人可能觉得不方便,就我自己工作中用到的几种nosql管理工具下面介绍给大家。

     

    RedisAdminUI ----redis的管理工具

    这是一个很友好的Redis Web界面管理工具,基于.NET实现。

    项目地址:http://code.google.com/p/servicestack/wiki/ServiceStackRedis
    演示地址:http://www.servicestack.net/RedisAdminUI/AjaxClient/#
    下载地址:http://servicestack.googlecode.com/files/RedisAdminUI.zip

    截图如下:

     

     

    Cassandra Web界面管理工具:Cassandra Cluster Admin

    Cassandra Cluster Admin是一个针对Cassandra的Web界面管理工具,其支持的功能如下:
    • 密匙空间控制操作(add/edit/drop)
    • 列家族控制(add/edit/truncate/drop)
    • 列家族和超级列家族上的行控制(insert/edit/remove)
    • 原始数据浏览器(最佳功能)
    • 支持对多Cassandra集群的管理
    下载地址:https://github.com/sebgiroux/Cassandra-Cluster-Admin

  • 相关阅读:
    自动化运维与Saltstack
    keepalived+nginx 高可用集群
    Nginx集群(负载均衡)
    Nginx优化
    Nginx管理(一)
    业务环境、测试、上线逻辑
    服务器部署逻辑
    python面试题——爬虫相关
    springmvc文件上传
    springmvc入门
  • 原文地址:https://www.cnblogs.com/lexus/p/2254804.html
Copyright © 2011-2022 走看看