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

Installing WildFly 16.0.0 by Compiling Source Code

  1. Obtain the WildFly source code.
    1. Use a local browser to download the WildFly source code.

      Download address: https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.zip

    2. Copy the file to the /opt directory on the server.

      If the server is connected to the Internet, you can run the wget command on the server to download the source code.

      1
      cd /opt/
      
      1
      wget https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.zip --no-check-certificate
      
  2. Decompress the WildFly installation package.
    1
    unzip wildfly-16.0.0.Final.zip
    

  3. Establish a soft link.
    1
    ln -s /opt/wildfly-16.0.0.Final/ /opt/wildfly
    

    The soft link is established because WildFly searches for resources in the /opt/wildfly directory during execution.

  4. Create a wildfly folder.
    1
    mkdir /etc/wildfly
    
  5. Copy files.
    1
    \cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/
    
    1
    \cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/
    
    1
    \cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system
    
  6. Change folder permissions.
    1
    chmod +x /opt/wildfly/bin/*.sh
    
  7. Reload the configuration file.
    1
    systemctl daemon-reload
    
  8. Create the WildFly user group and user, and grant the /opt/wildfly/ permission to the WildFly user group and user.
    1
    groupadd wildfly
    
    1
    useradd -g wildfly wildfly
    
    1
    chown -RH wildfly: /opt/wildfly