1.java.net.ConnectException: Connection refused
拒絕連接
需要找到redis.conf文件,將以下這行注釋掉
bind 127.0.0.1
2.java.net.SocketException: Connection reset
連接重置
在本地服務(wù)器上登陸redis,關(guān)閉保護模式,默認(rèn)是打開的
config set protected-mode "no"
1.java.net.ConnectException: Connection refused
拒絕連接
需要找到redis.conf文件,將以下這行注釋掉
bind 127.0.0.1
2.java.net.SocketException: Connection reset
連接重置
在本地服務(wù)器上登陸redis,關(guān)閉保護模式,默認(rèn)是打開的
config set protected-mode "no"