如何使用IP访问JBoss?

时间:2011-09-06 14:37:31

标签: jboss5.x

我的JBoss服务器正在我的系统中运行并尝试使用我的系统的IP地址从其他系统访问它,但它无法访问,甚至从我自己的系统我无法使用ip访问。
如何使用ip地址启用jboss。

由于

2 个答案:

答案 0 :(得分:3)

我们可以运行JBoss为./run.sh -b 127.0.0.1或run.bat -b 127.0.0.1
这将使用ip进行JBoss访问。

答案 1 :(得分:1)

如果JBoss在您的计算机上运行,​​您可以使用此URL访问它

http://localhost:<portnumber>

If you have started the JBoss using the command 

run.bat> 

then you can access the JBoss through above URL only.

If you use this command to start the JBoss :

run –b 0.0.0.0.> 

 then you can access the JBoss using this URL also

http://<ipaddress>:<portnumber> 

In addition to this, if in place of IP address if you want to use some domain name then add that domain name 

<IP address>  <domain name> 

into the host file at this path:

C:\WINDOWS\system32\drivers\etc> 

then you can access your jboss through this url

http://<domain name>:<portnumber> 

有关详细信息,请查看此博客http://tarunjain-jaintarun.blogspot.com/2012/08/acessing-jboss-using-ipaddress.html