美文网首页
redis连接时报错:Could not connect to

redis连接时报错:Could not connect to

作者: 杜子龙 | 来源:发表于2019-02-28 01:25 被阅读0次

    brew install redis 安装好redis

    用terminal连接redis时出现错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused

    在/usr/local/etc/目录下找到redis.conf

    将daemonize no 修改为 daemonize yes

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

    redis-cli

    done!
    搬运工:https://blog.csdn.net/qq_36477562/article/details/79682779

    相关文章

      网友评论

          本文标题:redis连接时报错:Could not connect to

          本文链接:https://www.haomeiwen.com/subject/xpdcuqtx.html