redis 6.0.4服务启动(个人配置用)

安装redis后 , 输入"./redis-cli"时出现错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused

1 .在/usr/local/etc/目录下找到redis.conf  , 用文本编辑器打开后找到 (第206行)daemonize no 修改为 daemonize yes

2 .再输入 redis-server /usr/local/etc/redis.conf

3 .然后输入redis-cli即可启动服务 .

redis 6.0.4服务启动(个人配置用)

 

01 ~错误提示:(error) NOAUTH Authentication required.

其实是密码验证错误 , 输入conf文件设置的密码 --27.0.0.1:6379> auth "yourpassword" --

02~