解決redis報錯

2021-08-21 09:32:35 字數 326 閱讀 9111

最近想學學redis, 於是在虛擬機器搭了乙個環境 ,安裝好了redis, 3.0.0版本。正常啟動,本地連線測試,竟然報了乙個錯誤

redi***ception: protocol error, got 'n' as reply type byte, 查了一下,原來是 啟動 redis-server的時候  沒有加上配置檔案,於是把redis.conf 複製到/etc/下乙份,

在配置檔案裡redis.conf  注釋掉bind 127.0.0.1, 然後 protected-module  no , 儲存  然後重新啟動,redis-server /etc/redis.conf.   重新測試,成功!

centos安裝redis報錯解決

1 centos預設沒有安裝gcc,這會導致我們無法make成功。使用yum安裝 yum y install gcc2 make時報如下錯誤 zmalloc.h 50 31 error jemalloc jemalloc.h no such file or directory zmalloc.h 5...

連線Redis報錯的解決方法

使用的python版本 3.7.3 叨叨背景 連線redis,一直報錯!源 import redis client redis.strictredis 報錯資訊traceback most recent call last file line 1,in file c program files je...

Redis集群報錯

搭建redis集群報錯 原因 經過排查,發現配置檔案中監聽的ip位址不可以有127.0.0.1的存在,只能監聽各本機的ip位址 經過修改並重啟服務後再次建立集群立刻成功 root localhost opt vi etc redis 6379.conf 修改配置檔案 root localhost o...