我将 Redis DB 与 NodeJS 一起使用。有时我会遇到异常并且我的服务器(NodeJS)崩溃只是再次重新启动。
Error: Redis connection to localhost:6380 failed - getaddrinfo ENOTFOUND
有人可以解释为什么会这样吗?以下配置与此有关吗?
# Set the max number of connected clients at the same time. By default
# this limit is set to 10000 clients, however if the Redis server is not
# able ot configure the process file limit to allow for the specified limit
# the max number of allowed clients is set to the current file limit
# minus 32 (as Redis reserves a few file descriptors for internal uses).
#
# Once the limit is reached Redis will close all the new connections sending
# an error 'max number of clients reached'.
#
# maxclients 10000