Installing services

The safest way to manually install the service is to use the provided service.bat script. Administrator privileges are required to run this script. If necessary, you can use the /user switch to specify a user to use for the installation of the service.

On Windows Vista or any later operating system with User Account Control (UAC) enabled you will be asked for additional privileges when ‘Tomcat8.exe’ is launched by the script.

If you want to pass additional options to service installer as PR_* environment variables, you have to either configure them globally in OS, or launch the program that sets them with elevated privileges (e.g. right-click on cmd.exe and select “Run as administrator”; on Windows 8 (or later) or Windows Server 2012 (or later), you can open an elevated command prompt for the current directory from the Explorer by clicking on the “File” menu bar).

Install the service named ‘Tomcat8’

C:\> service.bat install

There is a 2nd optional parameter that lets you specify the name of the service, as displayed in Windows services.

Install the service named ‘MyService’

C:\> service.bat install MyService

If using tomcat8.exe, you need to use the //IS// parameter.

Install the service named ‘Tomcat8’

C:\> tomcat8 //IS//Tomcat8 –DisplayName=”Apache Tomcat 8″ \

C:\> –Install=”C:\Program Files\Tomcat\bin\tomcat8.exe” –Jvm=auto \

C:\> –StartMode=jvm –StopMode=jvm \

C:\> –StartClass=org.apache.catalina.startup.Bootstrap –StartParams=start \

C:\> –StopClass=org.apache.catalina.startup.Bootstrap –StopParams=stop

Share this post
[social_warfare]
Command line parameters
Updating services

Get industry recognized certification – Contact us

keyboard_arrow_up