How to change Wildfly server's IP address

前端 未结 2 1776
失恋的感觉
失恋的感觉 2021-01-11 18:48

I\'m working on preparing a program that runs on Wildfly for deployment to a customer site, and I need to change the IP address that Wildfly launches on. How do I configure

2条回答
  •  礼貌的吻别
    2021-01-11 19:03

    Either you can bind the address through passing the arguments while starting the server like

    ./standalone.sh -c standalone-full.xml -b=127.0.0.2
    

    https://sourcevirtues.wordpress.com/2013/12/09/set-wildfly-binding-address-and-shutdown-from-cli/

    or it can be configured in host.xml file

    
    
        
    
    
    

    http://www.mastertheboss.com/jboss-server/jboss-configuration/how-to-access-jboss-as-over-a-network

    Update : To run as service, you will need to set some variables in service.bat as well

    set CONTROLLER=localhost:9990 // here set your ip:9990 and other required details
    
        set DC_HOST=master
        set IS_DOMAIN=false
        set LOGLEVEL=INFO
        set JBOSSUSER=admin  //management admin user
        set PASSWORD=pwd  //management admin password
    

提交回复
热议问题