Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed tutorials for Tomcat9 to install windows services

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Preparatory work

1.1 download the tomcat package with service.bat at https://tomcat.apache.org

1.2 extract to a custom specified directory

1.3 go to the bin directory, find the service.bat file, open it and edit it

two。 Set the tomcat service name

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

Set SERVICE_NAME=Tomcat9_8080

3. Set the tomcat service display name

Search for "DisplayName" to modify the tomcat service display name

4. Add tomcat to windows service mode 1

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

Service.bat install

Added to the service

Uninstall the windows service for tomcat

Service.bat remove

5. Add tomcat to windows service mode 2

Direct command add

/ / add the service service.bat install service name (customizable, not the same as in the configuration file) / / uninstall the service service.bat remove service name (customizable, not the same as in the configuration file)

Summary

The above is the detailed tutorial of Tomcat9 installation windows service introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report