Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 5. Using Jsvc to Start Tomcat
Jsvc is a set of libraries and applications that facilitates running Java applications on Linux, UNIX, and similar operating systems. Using Jsvc with JBoss Web Server allows Tomcat to switch identities. Using Jsvc, Tomcat can perform root-level operations and then revert to a non-privileged user. Jsvc is primarily used for running Tomcat as a service.
Jsvc files are available at the following locations:
For Red Hat Enterprise Linux:
-
JWS_HOME/extras/jsvc JWS_HOME/tomcat<VERSION>/bin/jsvcNoteJWS_HOME/tomcat<VERSION>/bin/jsvcis a symlink toJWS_HOME/extras/jsvc.
-
For Solaris:
-
JWS_HOME/sbin/jsvc JWS_HOME/share/apache-tomcat-<VERSION>/bin/jsvcNoteJWS_HOME/share/apache-tomcat-<VERSION>/bin/jsvcis a symlink toJWS_HOME/sbin/jsvc.
-
5.1. Starting Tomcat Using Jsvc Copier lienLien copié sur presse-papiers!
Start Tomcat Using Jsvc on Red Hat Enterprise Linux
Run the following command to start Tomcat using Jsvc on Red Hat Enterprise Linux:
JWS_HOME/tomcat<VERSION>/bin/daemon.sh start
JWS_HOME/tomcat<VERSION>/bin/daemon.sh start
Start Tomcat Using Jsvc on Solaris
Run the following command to start Tomcat using Jsvc on Solaris:
JWS_HOME/share/tomcat<VERSION>/bin/daemon.sh start
JWS_HOME/share/tomcat<VERSION>/bin/daemon.sh start
5.2. Stopping Tomcat Using Jsvc Copier lienLien copié sur presse-papiers!
Stop Tomcat Using Jsvc on Red Hat Enterprise Linux
Run the following command to stop Tomcat that was started using Jsvc on Red Hat Enterprise Linux:
JWS_HOME/tomcat<VERSION>/bin/daemon.sh stop
JWS_HOME/tomcat<VERSION>/bin/daemon.sh stop
Stop Tomcat Using Jsvc on Solaris
Run the following command to stop Tomcat that was started using Jsvc on Solaris:
JWS_HOME/share/tomcat<VERSION>/bin/daemon.sh stop
JWS_HOME/share/tomcat<VERSION>/bin/daemon.sh stop
5.3. Jsvc Parameters Copier lienLien copié sur presse-papiers!
The following parameters can be configured when running the daemon.sh script:
| Parameter Name | Environment Variable | Default Value | Description |
|---|---|---|---|
|
|
|
Based on the value of the | The Java home directory location. |
|
|
| Determined by the location of the script. | The Tomcat installation directory location. |
|
|
|
Based on the value of the | The directory that contains the specific configuration and setup information if multiple servers are using the same installation. |
|
| - |
| The file where the process ID (PID) for the running instance of Tomcat is stored. |
|
| - |
| The user Tomcat uses. |
|
| - |
This is a wrapper to the |