spring boot 連接redis Unable to connect to Redis server: 127.0.0.1/127.0.0.1:6379


啟動項目的時候,提示Unable to connect to Redis server: 127.0.0.1/127.0.0.1:6379

這個是因為redis沒有設置密碼,但是寫了password:導致,只要將#password:,注掉就可以連接。

 

啟動:redis-server redis.conf

 

 redis-cli,進入redis

 

 客戶端命令行操作:

 

 

 

以上圖1、2來至:

https://blog.csdn.net/kimiHuanCSDN/article/details/81064636


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM