解决Creating Server TCP listening socket 54.179.160.162:7001: bind: Cannot assign requested address

背景:之前在测试环境搭过一个redis集群,运维把服务器重启之后我重新开启redis集群始终起不来,但是有没有任何日志,经过如下步骤最终解决问题

1.修改日志路径,根据日志查看为什么会启动失败[前期操作请参考我的另一篇如何创建集群]

修改配置文件,如我要启动的是本机的7001端口,修改配置文件../cluster/7001/redis.conf

修改日志路径,默认是空的,现在改为logfile "/usr/local/redis-3.2.4/log/redis.log"

重新执行启动命令redis-server3 ../cluster/7001/redis.conf  

日志打印出27905:M 13 Dec 10:02:33.868 # Creating Server TCP listening socket 54.179.160.162:7001: bind: Cannot assign requested address

2.这个是表示绑定ip失败,原因是运维把服务器重启之后服务器的ip变更了,好尴尬

修改配置文件,更改绑定的ip,不用外网ip了直接改为本机ip

vim ../cluster/7001/redis.conf

bind 127.0.0.1

3.重新启动redis-server3 ../cluster/7001/redis.conf,成功了

时间: 2024-10-14 23:22:10

解决Creating Server TCP listening socket 54.179.160.162:7001: bind: Cannot assign requested address的相关文章

[已解决]报错: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

问题: windows下安装Redis第一次启动报错: [2368] 21 Apr 02:57:05.611 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error 解决: 在命令行中运行 redis-cli.exe 127.0.0.1:6379>shutdown not connected>exit 然后重新运行 redis-server.exe redis.windows.conf 启动成功! from:

redis在windows下启动# Creating Server TCP listening socket 127.0.0.1:6379: bind: No error解决

按顺序输入: 1.redis-cli.exe 2.shutdown 3.exit 4.redis-server.exe redis.window.conf

creating server tcp listening socket 127.0.0.1:6379: bind No error

window下安装redis报错: 的解决方案如下按顺序输入如下命令就可以连接成功 1. Redis-cli.exe2. shutdown3. exit4. Redis-server.exe redis.windows.conf 转自 http://blog.csdn.net/dopamy_busymonkey/article/details/71077395

开启redis-server提示 # Creating Server TCP listening socket *:6379: bind: Address already in use--解决方法

在bin目录中开启Redis服务器,完整提示如下: [java] view plain copy 3496:C 25 Apr 00:56:48.717 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf 3496:M 25 Apr 00:56:48.719 * Increased

windows redis 连接错误Creating Server TCP listening socket 127.0.0.1:637 9: bind: No error

报错信息如下: [10036] 30 Dec 10:23:49.616 # Creating Server TCP listening socket 127.0.0.1:637 9: bind: No error[8660] 30 Dec 10:23:57.132 # Creating Server TCP listening socket *:6379: listen : Unknown error 解决方案如下按顺序输入如下命令就可以连接成功 1. Redis-cli.exe2. shutd

# Creating Server TCP listening socket *:6379: bind: No such file or directory

刚装完redis就报错: # Creating Server TCP listening socket *:6379: bind: No such file or directory 解决方案如下: 1. redis-cli.exe2. shutdown3. exit4. redis-server.exe 原文地址:https://www.cnblogs.com/AlbertSmith/p/12568375.html

[6644] 02 Apr 23:11:58.976 # Creating Server TCP listening socket *:6379: bind: No such file or directory

redis报错: 的解决方案如下按顺序输入如下命令就可以连接成功 1. redis-cli.exe2. shutdown3. exit4. redis-server.exe

python socket编程腾讯云下报错[Errno 99] Cannot assign requested address的解决方式

先写服务端server.py: import socket import time HOST = '172.17.xx.xx' #服务器的私网IP #HOST = 'localhost' PORT = 8001 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind((HOST, PORT)) sock.listen(5) while True: connection,address = sock.accept() t

Socket connect error 99(Cannot assign requested address)

转载请注明转自: 存储系统研究, 本文固定链接:socket connect error 99(Cannot assign request address) 这是最近使用libcurl写http服务的压力测试的时候遇到的一个问题,其直接表象是客户端在发送http请求时失败,最终原因是客户端的TIME_WAIT状态的socket进程过多,导致端口被占满.下面看整个分析过程: (1) 首先看产生错误的源码: /* get it! */ res = curl_easy_perform(curl_han