Redis:Cannot assign requested address的解决办法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
开发压测时说应用连接redis有redisCannot assignrequestedaddress的报错,从网上查了一些资料,都说是修改linux的这三个内核参数
sysctl -w net.ipv4.tcp_timestamps=1
sysctl -w net.ipv4.tcp_tw_recycle=1
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
执行之后依然报错,检查redis没有异常,连接数不高,TCP连接中也没有TIME-WAIT,因此排除了redis及服务器文件让开发排查一下应用的问题。最后发现springboot2.0之后不再使用jedis作为默认客户端,连接池配置错了,修改配置后不再报错




A beautiful web dashboard for Linux
最近提交(Master分支:20 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)