Redis Could not connect to Redis at 127.0.0.1:6379: Connection refused

1. Start the redis client redis-cli and report an error

redis Could not connect to Redis at 127.0.0.1:6379: Connection refused because the client could not find the server

Indicates that the server did not start successfully

2. How to start and stop the redis service

 Replenish:

Because the redis service port is modified

Start the redis
client./bin/redis-server ./conf/redis.conf —> start the
service./bin/redis-cli -p 1234 —-> start the
client./bin/redis-cli -p 1234 shutdown shutdown Serve

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325245247&siteId=291194637