Jboss 只在 localhost:8080 上工作,但在被 ip 调用时不回复 [英] Jboss only works on localhost:8080 ,but doesnt reply when called by ip

查看:24
本文介绍了Jboss 只在 localhost:8080 上工作,但在被 ip 调用时不回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 JBoss 5.0.1并运行它,但是当我在 localhost:8080 上的同一台计算机上调用它时,它可以工作但是当我从其他计算机调用它时,它根本无法使用计算机 IP...

I installed JBoss 5.0.1 and ran it , but when i called it from the same computer on localhost:8080 it works but when i call it from other computer it doesnt work at all using the computer IP ... when i had tomcat it used to work on both.so Does anybody know the problem?

推荐答案

如果您希望 JBoss 在机器上的所有 IP 地址上进行通信,那么您可以使用 -b 选项将 0.0.0.0 作为 ip 来启动它地址,例如

If you want JBoss to communicate on all IP addresses that are on the machine, then you can start it with the -b option passing 0.0.0.0 as the ip address, e.g.

-b 0.0.0.0

绑定到您想要的特定 IP 地址可能更好.您可以使用 -b 选项再次执行此操作,但传递要绑定到的 IP 地址或要绑定到的 DNS 名称,例如

Probably better is binding to the specific IP address that you want to. You can do this again by using the -b option, but passing the IP address you want to bind to or the DNS name you want to bind to, e.g.

-b 192.168.0.1

或-b jbosshostname

您可以将 -b 选项放在 run.bat 文件中,以便在您将 JBoss 作为服务运行时自动使用它 - 假设是 Windows.如果您使用的不是 Windows,您可以将此选项放在 run.sh 文件中.

You can put the -b option in the run.bat file so it is used automatically if you are running JBoss as a service - assuming Windows. If you are not using Windows, you can place this option in the run.sh file.

如果不想在run.sh/bat文件中加入-b选项,可以在命令行输入:

If you do not wish to put the -b option in the run.sh/bat file, you can enter it at the command line:

run.bat -b 192.168.0.1

这篇关于Jboss 只在 localhost:8080 上工作,但在被 ip 调用时不回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆