在 Redis2.4 中,最大连接数是被直接硬编码在代码里面的,而在2.6版本中这个值变成可配置的。

maxclients 的默认值是 10000,你也可以在 redis.conf 中对这个值进行修改。

命令:查看最大连接数  config get maxclients
命令:设置最大连接数  redis-server --maxclients 100000

Redis设置并查看最大连接数

Redis设置并查看最大连接数

 

相关文章:

  • 2021-10-13
  • 2022-12-23
  • 2021-08-24
  • 2021-12-31
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2021-11-23
  • 2022-12-23
  • 2022-01-16
  • 2021-11-19
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案