初學redis問題--connect timed out

1。問題 .使用Java程序連接centos 的redis服務器出現:java.net.SocketTimeoutException: connect timed out 2。問題截圖: 3。解決辦法 1。使用本地可以ping同centos,但是就是出現connect timed out,。原因:centos的防火牆沒有關閉。 2。打開方法:systemctl start firewalld.se
相關文章
相關標籤/搜索