解决JBoss只能通过localhost访问不能通过IP的问题
生活随笔
收集整理的這篇文章主要介紹了
解决JBoss只能通过localhost访问不能通过IP的问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前序
現(xiàn)在EJB是真的有點(diǎn)落伍了么,網(wǎng)上找點(diǎn)資料都挺難的樣子,而且都是很久的了。。好吧,最近對(duì)EJB有點(diǎn)興趣學(xué)習(xí)一下,結(jié)果下載到服務(wù)器啟動(dòng)后,居然不能直接通過(guò)服務(wù)器IP訪問(wèn),也是醉了,默認(rèn)只能通過(guò)本地localhost進(jìn)行訪問(wèn)。如果需要遠(yuǎn)程訪問(wèn),就要修改配置文件了。
軟件版本:wildfly-10.1.0.Final。是的,連jboss名都改了,這個(gè)好像真不咋樣。
修改配置文件
編輯${JBOSS_HOME}/standalone/configuration/standalone.xml 找到以下內(nèi)容:
<interfaces><interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.1}"/> </interface> </interfaces>?
將其中的127.0.0.1改為服務(wù)器的ip地址即可,修改后的樣子:
<interfaces><interface name="management"> <inet-address value="${jboss.bind.address.management:192.168.1.2}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:192.168.1.2}"/> </interface> </interfaces>總結(jié)
以上是生活随笔為你收集整理的解决JBoss只能通过localhost访问不能通过IP的问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 为什么Segment会从微服务退回单体架
- 下一篇: 34.任务计划cron chkconfi