此内容没有您所选择的语言版本。
2.5.8. Running Enterprise Web Server
To run JBoss Enterprise Web Server, run the following:
- Tomcat (6 or 7, refer to Section 2.5.8.1, “Running Tomcat”)
- HTTP server (Section 2.5.8.2, “Running HTTP”)
2.5.8.1. Running Tomcat 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can run Tomcat either in the background as a service (refer to Section 2.5.8.1.2, “Running Tomcat as a Service”) or in the foreground as a program (refer to Section 2.5.8.1.1, “Running Tomcat as a Program”).
Important
It is strongly recommended to run Tomcat with the startup.sh script (refer to the startup.sh entry in Section 2.5.8.1.1, “Running Tomcat as a Program”). Note that this is the only supported running method.
Before starting Tomcat, make sure the following prerequisites are met:
- The tomcat user is created (refer to Procedure 2.7, “Creating tomcat User”).
- JAVA_HOME is set correctly (refer to Procedure 2.6, “Setting JAVA_HOME”).
2.5.8.1.1. Running Tomcat as a Program 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To run Tomcat as a program, run one of the following scripts:
startup.sh
scriptRun the following command as the root user with the respective Tomcat version (6
or7
):The system reads the configuration file and changes to the user and group to the tomcat user account (that is, Tomcat is always run under the tomcat user). By default,sh /opt/jboss-ews-2.0/tomcat<VERSION>/bin/startup.sh
# sh /opt/jboss-ews-2.0/tomcat<VERSION>/bin/startup.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow tomcat-native
is automatically added to theLD_LIBRARY_PATH
and-Djava.library.path
during Tomcat startup.catalina.sh
scriptRun the following command with the respective Tomcat version (6
or7
) :sh /opt/jboss-ews-2.0/tomcat<VERSION>/bin/catalina.sh
# sh /opt/jboss-ews-2.0/tomcat<VERSION>/bin/catalina.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - custom script, which calls
catalina.sh
2.5.8.1.2. Running Tomcat as a Service 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To run Tomcat as a service, create and use your own system daemon script with jsvc.