tomcat.exe: Tomcat Service and Java Applications on Domains
The tomcat.exe
utility is used to manage the Tomcat service and the Java-based Web applications on domains. Using this utility, you can perform the following tasks:
- installing Java Web applications on a domain
- changing status of the Tomcat service on a domain
- changing statuses of Java-based Web applications on a domain
Location
%plesk_cli%
Usage
Example
The following command installs a new Java-based Web application from file E:\siteapps\storefront.war
on the domain example.com:
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Installs a Java-based Web application on a domain. Requires the |
To install the web application from the file tomcat.exe --install E:\siteapps\storefront.war -domain example.com or tomcat.exe -i E:\siteapps\storefront.war -domain example.com |
|
|
Deletes a Java-based web application from a domain. Requires the |
To delete web application storefront from the domain example.com: tomcat.exe --remove storefront -domain example.com or tomcat.exe -r storefront -domain example.com |
|
|
Updates a domain's Tomcat service status. |
To enable Tomcat service on the domain example.com: tomcat.exe --update-service example.com -status enabled |
|
|
Updates a Java-based web application status. Requires the |
To start web application storefront on the domain example.com: tomcat.exe --update storefront -domain example.com -status enabled |
|
|
Displays help on the use of the utility. |
To view help on the use of the utility: tomcat.exe --help or tomcat.exe -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies a domain on which a Java application is to be installed or updated. |
To install the web application from the file tomcat.exe -i E:\siteapps\storefront.war -domain example.com |
|
|
Prohibits restarting Tomcat service. Used with |
To install the web application from the file tomcat.exe --install E:\siteapps\storefront.war -domain example.com -no-restart |
|
|
Enables/Disables Tomcat service or a Java application on a domain (the Disables Tomcat service or a Java application and sets the Tomcat service or a Java application status to "disabled by administrator" ( Sets the Tomcat service or a Java application status to the status of the domain ( The use of the |
To enable the web application storefront on domain example.com: tomcat.exe --update storefront -status enabled -domain example.com
To set the status of the Tomcat service on the domain example.com to the status of the domain: tomcat.exe --update-service example.com -status parent |