In this document, $TOMCAT_HOME is used to refer the absolute path of the directory containing Tomcat server resources like executable binaries (bin), configuration (conf), web applications (webapps) etc.
Follow the below steps to run Tomcat as a service for Windows.
$CATALINA_HOME and $TOMCAT_HOME
with the absolute path of Tomcat directory. (Like /usr/local/openspecimen/tomcat-as)
/etc/systemd/system
directorysudo systemctl daemon-reload
sudo systemctl start openspecimen.service
sudo systemctl status openspecimen.service
sudo systemctl stop openspecimen.service
sudo systemctl restart openspecimen.service
sudo systemctl enable openspecimen.service
Note:
Note: Use sudo or root privileges while creating a Tomcat service.
UbuntuTo enable starting OpenSpecimen service on boot, execute below command:
If you've customized service name, use the customized name instead of Redhat 6.x/CentOS 6.xUse
Use below command line to start OpenSpecimen service at a specific run level:
Note: To setup the 'OpenSpecimen service' we need the below prerequisites : |