Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

WSL2 中的127.0.0.1 和 localhost #98

Open
RealTong opened this issue Sep 8, 2021 · 0 comments
Open

WSL2 中的127.0.0.1 和 localhost #98

RealTong opened this issue Sep 8, 2021 · 0 comments

Comments

@RealTong
Copy link

RealTong commented Sep 8, 2021

我在这个页面的配置过程遇到了问题:

Windows侧环境:Windows 10 Pro 21H1
WSL侧环境:OS: Arch Linux on Windows 10 x86_64 Kernel: 5.10.16.3-microsoft-standard-WSL2

问题

在WSL侧启动了ES,在Windows侧使用浏览器访问 localhost:9200返回正确的结果,访问127.0.0.1:9200 则显示拒绝连接

最后测试发现Postman,curl,还有SpringBoot程序里都显示连接失败。

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant