[Redis-CentOS7]Redis打開遠程連接(十) Could not connect to Redis at 127.0.0.1:6379: Connection refused


通過網絡無法訪問Redis

redis-cli 172.16.1.111
Could not connect to Redis at 127.0.0.1:6379: Connection refused

修改配置文件

bind 127.0.0.1 172.16.1.111 # 172.16.1.111本服務器IP地址

登錄驗證

redis-cli -h 172.16.1.111 -p 6379 -a password
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
172.16.1.111:6379> set username 'leoshi'
OK


免責聲明!

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



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