我要评分
获取效率
正确性
完整性
易理解

Running and Verifying WildFly

  1. Run JBoss.
    • Method 1: Add a parameter to the command to bind the IP address.
      1
      sh /opt/wildfly/bin/standalone.sh -Djboss.bind.address=0.0.0.0
      
      Or
      1
      sh /opt/wildfly/bin/standalone.sh -b=0.0.0.0
      
      Or
      1
      sh /opt/wildfly/bin/standalone.sh -Djboss.bind.address=IP
      
    • Method 2: Modify the IP address bound in the configuration file.
      1. Open the file.
        1
        vi /opt/wildfly-16.0.0.Final/standalone/configuration/standalone.xml
        
      2. Change 127.0.0.1 to 0.0.0.0. Save the file and exit.
      3. Start JBoss.
        1
        sh /opt/wildfly/bin/standalone.sh
        

        View the logs:

        1
        vi /opt/wildfly-16.0.0.Final/standalone/log/server.log
        
        1
        vi /opt/wildfly-16.0.0.Final/standalone/log/audit.log
        

        View the listening port:

        1
        netstat -anpt | grep 8080
        
  2. Verify JBoss.

    Open the browser and enter http://IP:8080 in the address box. If the WildFly welcome page is displayed, the execution is successful.

    If you cannot access the web page, check the IP address and port number.

    ping IP
    telnet IP 8080