redis connection refused

Java连接redis时connection refused:
Bind的问题:把配置文件redis.windows.conf里的

bind 127.0.0.1

注释掉它,或者改成

bind 0.0.0.0

bind localhost 只能本机访问,局域网内计算机不能访问。
bind 局域网IP 只能局域网内IP的计算机能访问,本地localhost都无法访问
启动的时候带着配置文件一起启动,启动之后不要关闭窗口。

redis-server.exe redis.windows.conf

猜你喜欢

转载自blog.csdn.net/innerpeaceScorpio/article/details/52129260