Ce contenu n'est pas disponible dans la langue sélectionnée.
2.4.5. Running Enterprise Web Server
To run JBoss Enterprise Web Server, run the following:
- Tomcat (6 or 7, see Section 2.4.5.1, “Running Tomcat”)
- HTTP server (Section 2.4.5.2, “Running HTTP”)
2.4.5.1. Running Tomcat Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can run Tomcat either in the background as a service (see Section 2.4.5.1.2, “Running Tomcat as a Service”) or in the foreground as a program (see Section 2.4.5.1.1, “Running Tomcat as a Program”).
Important
It is strongly recommended to run Tomcat with the startup.sh script (see the startup.sh entry in Section 2.4.5.1.1, “Running Tomcat as a Program”). Note that this is the only supported running method.
Before starting Tomcat, ensure that the following prerequisites are met:
- The tomcat user is created (see Procedure 2.7, “Creating tomcat User”).
- JAVA_HOME is set correctly (see Procedure 2.6, “Setting JAVA_HOME”).
2.4.5.1.1. Running Tomcat as a Program Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
To run Tomcat as a program, run one of the following scripts:
startup.shscriptRun the following command as the root user with the respective Tomcat version (6or7):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.1/tomcat<VERSION>/bin/startup.shtomcat-nativeis automatically added to theLD_LIBRARY_PATHand-Djava.library.pathduring Tomcat startup.catalina.shscriptRun the following command with the respective Tomcat version (6or7) :# sh /opt/jboss-ews-2.1/tomcat<VERSION>/bin/catalina.sh- custom script, which calls
catalina.sh
2.4.5.1.2. Running Tomcat as a Service Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
To run Tomcat as a service, you can use the daemon script with jsvc provided in Tomcat 6 and 7.
For more information about Jsvc, see About Jsvc chapter of the HTTP Connectors and Load Balancing Guide .