redis 最大连接数查看

[root@dc-uat-13 ~]# redis-cli -h 10.1.1.242 -p 6679 -a 'MkdGH*3ldf' info | grep connected_clients
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
connected_clients:464
[root@dc-uat-13 ~]# redis-cli -h 10.1.1.242 -p 6679 -a 'MkdGH*3ldf' config get maxclients
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
1) "maxclients"
2) "60000"

配置文件添加 

[root@dc-uat-13 ~]# cat /data/redis/6679/conf/redis.conf | tail -1
maxclients 60000

 


版权声明:本文为qq_36270681原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。