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
原文地址:https://www.cnblogs.com/CSunShine/p/12526645.html