[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