Today, an inexplicable error was reported when connecting to Redis at the terminal:
The reason is that the connection request was rejected. Because I entered shutdown before that and shut down the service, the next time I connect to start the Redis service, I need to reconnect.
To solve this connection error problem, you only need to restart the service.
redis-server /usr/loacal/bin/kconfig/redis.conf
Here I copied the reids.conf file to the kconfig folder, here you need to manually modify the path according to your own Redis configuration file.
Connect client:
redis-cli