How to change port number in jboss-7

前端 未结 7 1660
-上瘾入骨i
-上瘾入骨i 2021-02-01 14:05

I am using jboss-7 and I want to change the port number from 8080 to 7001. Which file do I need to change?

7条回答
  •  孤独总比滥情好
    2021-02-01 14:40

    When starting use

    ./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=1000 & 
    

    - for linux

    standalone.bat -Djboss.socket.binding.port-offset=1000 
    

    - windows

    here 1000 is the offset value. 8080 + 1000 = 9080 the application will start
    

提交回复
热议问题