gpt4 book ai didi

postgresql - WSL2 Ubuntu 无法ping通本地ip

转载 作者:行者123 更新时间:2023-12-05 07:07:47 25 4
gpt4 key购买 nike

enter image description here

我需要找出为什么我无法从我的 ubuntu wsl 终端 ping 我的主计算机的本地 IP。由于某些原因,WSL ip 是 172.24.61.1/20。我的主电脑 192.168.1.247 上有一个 postgresql 服务器,但它甚至无法 ping 通它。有人知道为什么吗?

最佳答案

防火墙!

关闭windows中的防火墙并检查ping。一旦它开始 ping 添加传入和传出规则。

要在 linux 中关闭防火墙,只需使用

systemctl stop firewalld 

也就是说,如果你在那里安装了防火墙,使用

检查它
systemctl status firewalld

关于postgresql - WSL2 Ubuntu 无法ping通本地ip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62029841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com