zoukankan      html  css  js  c++  java
  • jboss支持远程访问配置

    jboss有个特点,在本机启动之后,只能在本机的网页访问 http://localhost:8080,在其他机器上访问不了jboss服务。 

    1.关闭jboss服务端的防火墙


    解决方法如下: (dcm4chee 2.13.6 以及以上的版本不需要如下操作)
    在目录jboss-4.2.3.GAserverdefaultdeployjboss-web.deployer下,编辑文件server.xml, 
    <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" 

    将${jboss.bind.address}改为0.0.0.0就可以了 

    或者在启动jboss时加上参数 
    run  -D jboss.bind.address=0.0.0.0 

    这样也可以,不用改server.xml 

    6.0以上版本配置: 
    在standaloneconfiguration目录下的standalone.xml 
            <subsystem xmlns="urn:jboss:domain:webservices:1.1"> 
                <modify-wsdl-address>true</modify-wsdl-address> 
                <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host> 
                <endpoint-config name="Standard-Endpoint-Config"/> 
                <endpoint-config name="Recording-Endpoint-Config"> 
                    <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM"> 
                        <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/> 
                    </pre-handler-chain> 
                </endpoint-config> 
            </subsystem> 
            <subsystem xmlns="urn:jboss:domain:weld:1.0"/> 
        </profile> 

        <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> 
            <interface name="unsecure"> 
                <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/> 
            </interface> 
        </interfaces> 
    中修改

  • 相关阅读:
    httpmodule httphandler
    多线程基础
    LiveRTMP之rtmp流flash播放器无法正常播放问题解决(二)
    LiveRTMP CPU占用问题调优(一)
    LiveRTMP之MP4文件进行rtmp点播直播推送(三)
    LiveRTMP推送RTSP视频源进行RTMP直播
    LiveRTMP Android采集AAC流进行RTMP推送
    LiveRTMP 简单高效的RTMP推送库
    mac 终端 常用命令
    Keychain保存数据封装
  • 原文地址:https://www.cnblogs.com/h2zZhou/p/10000534.html
Copyright © 2011-2022 走看看