Could not connect to Redis at 192.168.0.129:6379: Connection refused

在虚拟机上(CentOS 6.7)本机连接自己的redis

[[email protected] bin]# ./redis-cli -h 192.168.0.129 -p 6379
Could not connect to Redis at 192.168.0.129:6379: Connection refused
Could not connect to Redis at 192.168.0.129:6379: Connection refused
not connected> 

查看配置文件,发现bind是写成:

bind 127.0.0.1

修改配置为

bind 127.0.0.1 192.168.0.129
192.168.0.129是redis所在的服务器的地址
时间: 2024-10-25 15:08:22

Could not connect to Redis at 192.168.0.129:6379: Connection refused的相关文章

Bind 远程连接出现rndc: connect failed: 192.168.1.66#953: connection refused

远程连接IP地址为192.168.1.66的BIND DNS服务器,出现 rndc: connect failed: 192.168.1.66#953: connection refused 原因:192.168.1.66DNS服务器的controls配置错误,inet是允许远程控制的IP,默认只允许本机使用127.0.0.1 将named.conf中的controls配置修改为如下: controls {        inet * port 953                   all

Redis 服务端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused

[[email protected] 桌面]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected> exit [[email protected] 桌面]# redis-server /etc/redis.conf [[email prote

Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused

Could not connect to Redis at 127.0.0.1:6379: Connection refused [[email protected] bin]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused [[email protected] /]# redis-server /etc/redis.conf [[email protected] /]# redis-cli

Could not connect to Redis at 127.0.0.1:6379: Connection refused

启动redis:  redis-server ../redis.conf redis启动成功后 执行命令行redis-cli报:Could not connect to Redis at 127.0.0.1:6379: Connection refused错误 那是因为redis安装路径下的redis.conf文件配置未修改: redis.conf文件中: 将daemonize no 修改为 daemonize yes 再输入 redis-server /usr/local/src/redis-

redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused

在启动redis之后,想要停止服务的时候,发现了这个错误: 原因: 在之前将redis前台启动的时候,是没有pid文件的,之后我将redis改成后台启动,但是没有将redis进程杀掉. 解决方法: 将redis进程杀掉就可以了. 原文地址:https://www.cnblogs.com/allenyip/p/10927105.html

hadoop启动之后出现错误:Retrying connect to server: hadoop/192.168.73.100:9000. Already tried 0 time(s);

INFO ipc.Client: Retrying connect to server: hadoop/192.168.73.100:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) INFO ipc.Client: Retrying connect to server: hadoop/192.168.73.1

ERROR 1130 (HY000): Host '192.168.0.190' is not allowed to connect to this MySQL serv

环境: CentOS6.2.MySQL5.1 问题描述: 在配置文件中将需要连接的MySQL的host设置为192.168.0.190(其实就是我自己的IP地址),然后运行自己的程序,结果返回MySQL错误提示,如标题所示.根据字面意思就是不允许通过192.168.0.190连接MySQL服务器. 问题分析: 根据错误提示分析,使用localhost连接MySQL是可以的,但是192.168.0.190去连接却被拒绝,那么首先肯定数据库服务器是没有问题的,应该是权限的问题,因为自己对MySQL也

Xshell 链接 Could not connect to '192.168.80.129' (port 22): Connection failed

在使用Xshell链接虚拟机VM里面的Linux的时候.链接失败,报 Could not connect to '192.168.80.129' (port 22): Connection failed 解决步骤: 1.重启VM.Linux.Xshell 2.重启未解决的话.本地命令行 ping Linux的IP C:\Users\Administrator>ping 192.168.80.129 3.本地命令行 ping 通的话,转第5步. C:\Users\Administrator>pi

192.168.0.1/16,1/24;192.168.1.1/16,1/24   IP段的意思

首先来了解一下二进制的转换知识: 二进制数转换成十进制数 二进制的1101转化成十进制1101(2)=1*2^0+0*2^1+1*2^2+1*2^3=1+0+4+8=13转化成十进制要从右到左用二进制的每个数去乘以2的相应次方不过次方要从0开始相反 用十进制的13除以2 每除一下将余数就记在旁边最后按余数从下向上排列就可得到1101十进制转二进制:用2辗转相除至结果为1将余数和最后的1从下向上倒序写 就是结果例如302302/2 = 151 余0151/2 = 75 余175/2 = 37 余1