JBOSS & Wildfly 常用設置

1. JBoss伺服器改成支援外網訪問
standalone.xml文件中找到

<interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>

在這個下面加入

 <interface name="any">
            <any-ipv4-address/>
 </interface>

另外把1改成2
1  <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
2  <socket-binding-group name="standard-sockets" default-interface="any" port-offset="${jboss.socket.binding.port-offset:0}">

或改成

<interface name="public">
    <any-address/>
</interface>

也可以用圖形管理界面來作修改,如下圖,將 Address Wildcard 設為:Any Address,並將 Inet Address 設為空值,不然會有錯誤。

JBoss interface 對外  

修改管理介面的網址限制

jboss_manageIP  
 
2.
訪問埠的更改
<socket-binding name="http" port="${jboss.http.port:80}"/>
 
3.
改為可以修改JSP頁面不用重啟

<servlet-container name="default">
    <jsp-config/>
    <websockets/>
</servlet-container>

改為

<servlet-container name="default">
      <jsp-config development="true"/>
</servlet-container>

 
4.
部署的程式不用wildfly內置CXF
 在應用的WEB-INF目錄下面增加該檔:jboss-deployment-structure.xml

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
    <deployment>
  <!-- exclude-subsystem prevents a subsystems deployment unit processors running on a deployment -->
     <!-- which gives basically the same effect as removing the subsystem, but it only affects single deployment -->
        <exclude-subsystems>
            <subsystem name="webservices" />
        </exclude-subsystems>
    </deployment>
</jboss-deployment-structure>

 

參考:

http://misforum.ddns.net/forum.php?mod=viewthread&tid=19

http://my.oschina.net/zhaoqian/blog/366406

文章標籤
創作者介紹
MIS

MISTECH 技術手抄本

MIS 發表在 痞客邦 PIXNET 留言(0) 人氣()