Redis常用操作

状态监控 - redis-stat

安装

yum install gcc-c++
yum -y install ruby-devel
yum install ruby   
yum install rubygems  git

git clone https://github.com/junegunn/redis-stat.git

gem install redis-stat

cd /root/redis-stat/bin
redis-stat
[#]$ redis-stat --help
usage: redis-stat [HOST[:PORT] ...] [INTERVAL [COUNT]]

    -a, --auth=PASSWORD              Password
    -v, --verbose                    Show more info
        --style=STYLE                Output style: unicode|ascii
        --no-color                   Suppress ANSI color codes
        --csv[=CSV_FILE]             Print or save the result in CSV
        --es=ELASTICSEARCH_URL       Send results to ElasticSearch: [http://]HOST[:PORT][/INDEX]

        --server[=PORT]              Launch redis-stat web server (default port: 63790)
        --daemon                     Daemonize redis-stat. Must be used with --server option.

        --version                    Show version
        --help                       Show this message

redis-stat host:port interval -a password
posted @ 2020-03-19 19:31  飞_2016  阅读(100)  评论(0编辑  收藏  举报