«

Redis 无法访问: php_network_getaddresses: getaddrinfo for Redis failed: Name or service not known [tcp://Redis:6379]

輕塵 发布于 阅读:116 分享


Redis 无法访问: php_network_getaddresses: getaddrinfo for Redis failed: Name or service not known [tcp://Redis:6379]

解决办法:

在/etc/hosts中手动添加映射:127.0.0.1 Redis

wechat_2025-08-22_162738_762.png

问题截图:

8d23ebe6cde31e8de018ccbf40bfb8a3.png