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

Running and Verifying TomEE

  1. Start the TomEE service.
    1
    sh /opt/apache-tomee/apache-tomee-plus-8.0.1/bin/startup.sh
    

    If Tomcat started is displayed, the TomEE service is started.

    By default, TomEE waits for requests over port 8080. If you want to use another port, change the port number in the apache-tomee-plus-8.0.1/conf/server.xml configuration file and restart the system for the modification to take effect. The following operations related to the port number also need to be adjusted accordingly.

  2. Enable the firewall port.

    After the TomEE service is started, you need to configure the firewall on the server to open the service port of the TomEE and reload the configuration to make the configuration take effect if remote access is required. The operations are as follows:

    1
    firewall-cmd --add-port=8080/tcp --permanent
    
    1
    firewall-cmd --reload
    

    If port 8080 has been changed to another port in the conf/server.xml file in the TomEE installation directory, the new port must be opened on the firewall.

  3. Verify the TomEE service.

    After the TomEE service is started, access the TomEE service home page at http://IP address:TomEE service port from a PC. If the TomEE home page is displayed, the deployment is successful.

  4. Stop the TomEE service.
    1
    sh /opt/apache-tomee/apache-tomee-plus-8.0.1/bin/shutdown.sh
    

    Table 1 describes the commands for other versions of the TomEE.

    Table 1 Examples of commands for other TomEE versions

    Name

    Version

    Command

    TomEE plume

    TomEE plus,

    TomEE webprofile,

    or TomEE microprofile

    8.0.1

    Start:

    sh ./bin/startup.sh

    Stop:

    sh ./bin/shutdown.sh

    OpenEJB Standalone

    8.0.1

    Start:

    ./bin/openejb start

    Stop:

    ./bin/openejb stop