程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C++ >> C++入門知識 >> wildfly 實踐1,wildfly實踐

wildfly 實踐1,wildfly實踐

編輯:C++入門知識

wildfly 實踐1,wildfly實踐


實踐背景:基於wildfly開發分布式服務,包括web服務,DAS(數據訪問服務)服務及其它業務服務,全部使用分布式方式開發與部署。

實踐1:分布式服務(服務端角色)配置

 

  • 修改<interfaces>節點,配置如下:
     <interfaces>
            <interface name="management">
                <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
            </interface>
            <interface name="public">
                <inet-address value="${jboss.bind.address:0.0.0.0}"/>
            </interface>
            <interface name="unsecure">
                <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
            </interface>
        </interfaces>

    注:此配置目的是使用ip地址可訪問服務,配置之前只能使用localhost或127.0.0.1訪問。

  •  運行wildfly/bin/目錄下的 standalone.bat/standalone.sh,查看是否有錯誤輸出,本示例中沒有異常,且最後四行輸出如為:
    2016-12-13 14:43:06,894 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory /home/pacs/wildfly/standalone/deployments                             
    2016-12-13 14:43:07,133 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management                                                                            
    2016-12-13 14:43:07,134 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://0.0.0.0:9990                                                                                                   
    2016-12-13 14:43:07,134 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started in 4207ms - Started 209 of 385 services (210 services are lazy, passive or on-demand)

     

  • 至此,50.123機器上的服務器配置完成。
  •  

    1. 上一頁:
    2. 下一頁:
    Copyright © 程式師世界 All Rights Reserved