Detailed tutorial on installing Tomcat9 windows service

Detailed tutorial on installing Tomcat9 windows service

1. Preparation

1.1 Download the tomcat compressed package with service.bat, download address https://tomcat.apache.org
1.2 Unzip to a custom directory
1.3 Go to the bin directory, find the service.bat file, open and edit it

2. Set the tomcat service name

Search for "set SERVICE_NAME=", set the tomcat service name

set SERVICE_NAME=Tomcat9_8080 

3. Set the tomcat service display name

Search for "DisplayName" and modify the display name of the tomcat service

4. Add tomcat to windows service method 1

Open cmd (if you do not have sufficient permissions, run it as an administrator) and enter the bin directory of tomcat, and execute the following command:

service.bat install 

Added to service

Uninstall Tomcat's Windows service

service.bat remove 

5. Add tomcat to windows service method 2

Direct command addition

// Add service service.bat install Service name (customizable, not the same as in the configuration file)
// Uninstall service service.bat remove service name (customizable, not the same as in the configuration file)

Summarize

The above is a detailed tutorial on how to install Tomcat9 Windows service. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Java Zero-Base Tutorial: How to Install and Start Tomcat Server on Windows (Installation-Free Version)
  • How to install Tomcat server on Windows
  • How to install Tomcat server and configure virtual directory in Windows system
  • Tutorial diagram of installing MySQL service through MySQL Installer under Windows
  • Install OpenSSH on Windows and log in to the Linux server by generating an SSH key
  • Detailed explanation of MongoDB4.0 installation and service configuration tutorial under Windows 10
  • Detailed explanation of how to install and configure DNS server in Windows Server 2012
  • Detailed explanation of how to install DNS server bind9 on Windows 7
  • Detailed installation and configuration of Mosquitto service in Windows environment and introduction to entry operation
  • Windows Server 2016 Server Configuration Guide - IIS10 Installation Method

<<:  How to connect to virtual machine MySQL using VScode in window environment

>>:  Detailed explanation of SQL injection - security (Part 2)

Blog    

Recommend

Using CSS3 to achieve transition and animation effects

Why should we use CSS animation to replace JS ani...

Practice using Golang to play with Docker API

Table of contents Installing the SDK Managing loc...

Sample code for installing Jenkins using Docker

Two problems that are easy to encounter when inst...

Secondary encapsulation of element el-table table (with table height adaptation)

Preface During my internship at the company, I us...

How to install grafana and add influxdb monitoring under Linux

Install grafana. The official website provides an...

Summary of front-end knowledge in the Gokudō game

background In the early stages of learning Japane...

MySQL stored procedures and common function code analysis

The concept of mysql stored procedure: A set of S...

JavaScript canvas to achieve scratch lottery example

This article shares the specific code of JavaScri...

The implementation process of Linux process network traffic statistics

Preface Linux has corresponding open source tools...

Overview of the Differences between Linux TTY/PTS

When we type a letter on the keyboard, how is it ...

How to use the realip module in Nginx basic learning

Preface There are two types of nginx modules, off...

How to implement n-grid layout in CSS

Common application scenarios The interfaces of cu...

Example of using Dockerfile to build an nginx image

Introduction to Dockerfile Docker can automatical...