gpt4 book ai didi

linux - 无法使用本地 IP 从本地计算机访问 Eclipse Orion 服务器

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

我得到了一个 centos 服务器来启动 eclipse orion 代码编辑器。我按照 https://wiki.eclipse.org/Orion/How_Tos/Install_Orion_on_Localhost 上的说明安装了 Eclipse Orion。 (Linux 使用 jetty 服务器的步骤)。它在 centos 浏览器上运行良好。 centos os运行在198.168.1.226上。这样我就可以在centos的网络浏览器上访问以下网址。

  1. 198.168.1.226:8080
  2. 本地主机:8080
  3. 127.0.0.1:8080
  4. 0.0.0.0:8080

但是当我尝试从本地网络上的其他本地机器访问 198.168.1.226:8080 时,无法访问。我搜索了像 how to make jetty server accessible from LAN? 这样的 StackOverflow 问题和 Unable to access jetty server with local IP address但两者对我都没有用。我该如何解决这种情况?我可以通过编辑 orion.ini 文件上的代码来修复它,还是需要处理配置文件或其他东西?

我也尝试过 orion for windows 计算机,但它本身可以访问本地网络中任何其他计算机的 orion 系统。但我很惊讶在 centos 上使用 jetty 服务器设置 eclipse-orion 系统。

最佳答案

  1. 首先检查您是否允许来自 eclispse 的特定端口 (8080)。
  2. 使用该端口号添加规则。在 centos iptables 中如下:-

iptables -A INPUT -p tcp --dport 8080 (根据你的端口号调整) -j ACCEPT

关于linux - 无法使用本地 IP 从本地计算机访问 Eclipse Orion 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40238670/

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