线上redis连接不上
来源:2-4 介绍koa2-演示路由

宋大神
2020-01-16
在本地node服务可以正常连接线上的redis(docker部署);
线上(docker部署)连接redis 报错;
报错信息如下:
{“message”:“redis error Error: Redis connection to xxx.xxx.xxx.x:6379 failed - connect ETIMEDOUT xxx.xxx.xxx.x:6379 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14) { errno: -110, code: ‘ETIMEDOUT’, syscall: ‘connect’, address: ‘xxx.xxx.xxx.x’, port: 6379}”,“timestamp”:“2020-01-16T07:33:43.778Z”,“type”:“err”,“process_id”:0,“app_name”:“app-pm2”}
写回答
1回答
-
双越
2020-01-16
提示连接超时。看下你 nodejs 的 docker 和 redis 的 docker,能否 ping 通?
032020-01-17
相似问题