Jboss仅在localhost:8080上有效,但在ip调用时不回复 [英] Jboss only works on localhost:8080 ,but doesnt reply when called by ip
问题描述
我安装了JBoss 5.0.1 并运行它,但是当我从localhost:8080的同一台计算机上调用它时,它可以工作 但是当我从其他计算机上调用它时,使用计算机IP根本无法正常工作...当我安装了tomcat时,它可以同时在两者上运行.所以有人知道这个问题吗?
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选项(将IP地址传递给0.0.0.0)来启动它.地址,例如
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.
如果您不希望将-b选项放在run.sh/bat文件中,则可以在命令行中输入它:
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屋!