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

posted on 2018-04-29 21:59  FIGHTING360  阅读(1041)  评论(0编辑  收藏  举报