How to change port number in jboss-7

前端 未结 7 1847
-上瘾入骨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:46

    For Windows:

    standalone.bat

    is using

    standalone.conf.bat

    Open in notepad

    Add the last 2 lines (as seen below, aka the 2 "Alter Port Settings Offset" lines) (the first 3 lines should already be there...and provide the breadcrumb to where to place the 2 new lines that you need)

    rem # Make Byteman classes visible in all module loaders
    rem # This is necessary to inject Byteman rules into AS7 deployments
    set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman"
    
    REM NEW LINE HERE Alter Port Settings Offset
    set "JAVA_OPTS=%JAVA_OPTS% -Djboss.socket.binding.port-offset=1000"
    

提交回复
热议问题