telnet redis端口报错-DENIED Redis is running in protected mode解决方法

Redis安装好后,在局域网内访问redis,会出现错误:DENIED Redis is running in protected mode

原因是因为redis安装配置问题,具体修改如下:修改的文件为:../redis.conf

1.注释掉下面的:

#bind 127.0.0.1

2.redis默认不是以守护进程的方式运行,将daemonize设置为no

daemonize no

3.保护模式

Protected-mode no

最后启动的时候带上redis.conf

redis-server redis-conf

猜你喜欢

转载自www.cnblogs.com/zhangtingzu/p/8972089.html