Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 openSuse 端口 8080 上安装了 tomcat 服务器,但我只能在我的本地机器上连接到http://127.0.0.1:8080 。
你有像 iptables 这样配置的 linux 防火墙吗?
如果是 iptables,您可以使用此语句解决此问题
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
(您将 iptables 配置更改为接受外部 tcp 连接,如果您正在编辑防火墙端口,请确保您知道自己在做什么)