首页 > 其他 > 详细

[Redis-CentOS7]Redis打开远程连接(十) Could not connect to Redis at 127.0.0.1:6379: Connection refused

时间:2020-02-16 23:39:21      阅读:374      评论:0      收藏:0      [点我收藏+]

通过网络无法访问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

[Redis-CentOS7]Redis打开远程连接(十) Could not connect to Redis at 127.0.0.1:6379: Connection refused

原文:https://www.cnblogs.com/leoshi/p/12318867.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!