2021-05-12 14:32:11
JBoss7.1.1遠端無法存取
2020-06-16 17:12:05
一般情況下
在JBoss7.1.1.Final版本中設定standalone/configuration/standalone.xml
<interfaces>裡面name為public的<interface>設定成<inet-address value="${jboss.bind.address:0.0.0.0}"/>就可以了
<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:0.0.0.0}"/> </interface> <!-- TODO - only show this if the jacorb subsystem is added --> <interface name="unsecure"> <!-- ~ Used for IIOP sockets in the standard configuration. ~ To secure JacORB you need to setup SSL --> <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/> </interface> </interfaces> <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/> <socket-binding name="ajp" port="8009"/> <socket-binding name="http" port="8082"/> <socket-binding name="https" port="8443"/> <socket-binding name="osgi-http" interface="management" port="8090"/> <socket-binding name="remoting" port="4447"/> <socket-binding name="txn-recovery-environment" port="4712"/> <socket-binding name="txn-status-manager" port="4713"/> <outbound-socket-binding name="mail-smtp"> <remote-destination host="localhost" port="25"/> </outbound-socket-binding> </socket-binding-group>
執行./bin/standalone.sh啟動JBoss服務,通過這樣子設定後一般來說都外網內網都可以存取了,但是天翼雲有4個埠(80、8080、443、8443)需要備案才能使用,導致外網無法存取。所以下次遇到這種問題的時候可以先嘗試使用8082或其它埠。
本文永久更新連結地址:http://www.linuxidc.com/Linux/2017-06/145068.htm
相關文章