
在安装好redis扩展 尝试连接redis时,客户端打不开,原因是需要先开启服务端,
步骤1:需要先配置redis.conf
vi /etc/redis.conf
redis.conf 并修改 daemonize no 为 daemonize yes
,这样就可以默认启动就后台运行

步骤2:开启客户端要确保服务端启动
redis-server /etc/redis.conf
步骤3:启动客户端不成功要退出再进行下一步.
以下证明启动成功

在安装好redis扩展 尝试连接redis时,客户端打不开,原因是需要先开启服务端,
vi /etc/redis.conf
redis.conf 并修改 daemonize no 为 daemonize yes
,这样就可以默认启动就后台运行
redis-server /etc/redis.conf
以下证明启动成功
本文标题:Could not connect to Redis at 12
本文链接:https://www.haomeiwen.com/subject/ihqaihtx.html
网友评论