zoukankan      html  css  js  c++  java
  • zk-web

    Ref:https://github.com/qiuxiafei/zk-web

    zk-web是一个用clojure with noir and boostrap写的Zookeeper WEB UI管理工具。

    clojure代码总行数少于450.简单,强大!

    使用方法

    git clone git://github.com/qiuxiafei/zk-web.git
    cd zk-web
    lein deps # run this if you're using lein 1.x
    lein run
    

    配置

    配置费方式简单, 文件:

    $HOME/.zk-web-conf.clj or conf/zk-web-conf.clj

    例子:

    {
     :server-port 8989  ;; optional, 8080 by default
     :users {
             "admin" "hello"
             ;; map of user -> password
             ;; you can add more
             }
     :default-node "localhost:2181/my-start-node" ;; optional
     }
    

    特征

    • Jump to ancesters of a node in navigation bar.直接跳到任意祖先导航
    • List children of a node with link to them.显示当前节点的所有儿子
    • Show stat and data of a node.显示数据的存储信息
    • Remember last 3 zookeepers you visit in cookie.记住最近访问的3个zk地址。
    • Create/edit/delete/rmr a node.操作:创建,编辑,删除,RMR
    • Simple authority management. 简单的权限管理。
    • Default node for first-arrival guest.

    lein环境

    Ref:https://github.com/technomancy/leiningen

    Leiningen installs itself on the first run of the lein shell script; there is no separate install script. Follow these instructions to install Leiningen manually:

    1. Make sure you have a Java JDK version 6 or later.确保有JAVA环境
    2. Download the lein script from the stable branch of this project.从https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein下载脚本,存为/usr/bin/lein。
    3. Place it on your $PATH. (~/bin is a good choice if it is on your path.) 即/usr/bin/lein
    4. Set it to be executable. (chmod +x ~/bin/lein) 改为可执行文件。
    5. Run it.跑起来

    基础用法

    $ lein new [TEMPLATE] NAME # generate a new project skeleton
    
    $ lein test [TESTS] # run the tests in the TESTS namespaces, or all tests
    
    $ lein repl # launch an interactive REPL session
    
    $ lein run -m my.namespace # run the -main function of a namespace
    
    $ lein uberjar # package the project and dependencies as standalone jar
    
    $ lein deploy clojars # publish the project to Clojars as a library
    
  • 相关阅读:
    oracle 索引失效的原因
    输入英文查找出十个出现频率最高的单词
    记录最近在使用sprintf构造字符串时遇到的一个问题
    ADO.NET对象模型
    MySQL5.0中文手册(13.1. 数据定义声明)
    2005年中国软件产业最大规模前100家企业名单
    妹妹生了个女儿,纪念一下
    数组定义的疑问
    短期目标
    做项目的一点收获之二
  • 原文地址:https://www.cnblogs.com/pengzhen/p/6905225.html
Copyright © 2011-2022 走看看