Redis fails to start or cannot connect

Redis server fails to start or fails to connect
Error message: Job for redis-server.service failed because the control process exited with error code. See “systemctl status redis-server.service” and “journalctl -xe” for details.
or client Error message when going to the link:
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1: 6379 Connection refused
ps -ef | grep redis View the redis server process
sudo kill -9 pid kill Dead redis server
sudo redis-server /etc/redis/redis.conf Specify the loaded configuration file to kill all the redis display
including python 104924 103363 0 00:08 pts / 23 00:00:00 grep --color = auto redis
but this will restart automatically, that's right.
Then sudo redis-server /etc/redis/redis.conf again to start the connection redisredis-cli is complete.

Published an original article · Likes2 · Visits 24

Guess you like

Origin blog.csdn.net/weixin_45644922/article/details/105509507