---
title: "修改jboss端口"
author: "chicony"
date: "2012-10-24T17:35:55Z"
tags: []
categories: ["研发管理"]
slug: "jboss"
draft: false
lastmod: "2012-10-24T17:35:55Z"
id: 1704660
url: "https://chicony.iteye.com/blog/1704660"
---

修改jboss端口

 

%JBOSS\_HOME%\\server\\{服务实例名}\\conf\\bindingservice.beans\\META-INF\\bindings-jboss-beans.xml

 

中找到

```
   <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value  -->
   <bean name="PortsDefaultBindings"  class="org.jboss.services.binding.impl.ServiceBindingSet">
      <constructor>
         <!--  The name of the set -->
         <parameter>ports-default</parameter>
         <!-- Default host name -->
         <parameter>${jboss.bind.address}</parameter>
         <!-- The port offset -->
         <parameter>900</parameter>
         <!-- Set of bindings to which the "offset by X" approach can't be applied -->
         <parameter><null/></parameter>
      </constructor>
   </bean>
```

 

默认端口8080 设置parameter后 端口为8980