redis-stat 安装
apt-get install ruby
apt-get install rubygems
apt-get install rubygems
redis-stat安装:
cd/root
git clone https://github.com/junegunn/redis-stat.git
cd/root/redis-stat/bin
###./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=OUTPUT_CSV_FILE_PATH Save the result inCSV format
--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命令行模式
redis-stat
redis-stat1
redis-stat110
redis-stat--verbose
redis-stat localhost:63801 10
redis-stat localhost localhost:6380localhost:63815
redis-stat localhost localhost:63801 10 --csv=/tmp/output.csv--verbose
redis-stat web模式:
redis-stat--server
redis-stat--verbose--server=80805
redis-stat--server--daemon
案例 redis-stat 54.191.117.138:6380 54.186.241.58:6380 --server=8380 --daemon
git clone https://github.com/junegunn/redis-stat.git
cd/root/redis-stat/bin
###./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=OUTPUT_CSV_FILE_PATH Save the result inCSV format
--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命令行模式
redis-stat
redis-stat1
redis-stat110
redis-stat--verbose
redis-stat localhost:63801 10
redis-stat localhost localhost:6380localhost:63815
redis-stat localhost localhost:63801 10 --csv=/tmp/output.csv--verbose
redis-stat web模式:
redis-stat--server
redis-stat--verbose--server=80805
redis-stat--server--daemon
案例 redis-stat 54.191.117.138:6380 54.186.241.58:6380 --server=8380 --daemon