gpt4 book ai didi

linux - 无法从外部连接到tomcat

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:00:58 25 4
gpt4 key购买 nike

enter image description here

我在我的 openSuse 端口 8080 上安装了 tomcat 服务器,但我可以连接到 http://127.0.0.1:8080仅在我的本地机器上。

最佳答案

您是否配置了像 iptables 这样的 linux 防火墙?

如果是 iptables 你可以用这个语句来修复它

  iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

(您更改 iptables 配置以接受外部 tcp 连接,如果您正在编辑防火墙端口,请确保您知道自己在做什么)

关于linux - 无法从外部连接到tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4947054/

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