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

The tocmat in Windows is set to service boot.

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

Share

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

tocmat in Windows is set to service boot

Install Java, Tomcat

Install jdk, extract tomcat, configure Java environment variables

2 Configure tomcat as a service startup

tomcat7.exe, tomcat7w.exe These two files will work, you must first install services for this tomcat.

Note: tomcat7.exe file is used to start tomcat, tomcat7w.exe is to manage tomcat services.

1. Click Start--> Run and enter cmd to enter dos console.

2. Execute the following dos command (press Enter to execute after entering the command)

d:

cd Tomcat_oa\bin

service install

3 Removal of services

The basic operation is the same as 2, and finally execute service remove

4 Then go to "System-Services" to set up service autostart (service can be managed through "System-Services" or tomcat7w.exe)

If there are more than one tomcat to set as service

Edit the service.bat file and replace all tomcat7.exe files with tomcat7-1.exe

2 Edit the service.bat file and change "set SERVICE_NAME=Tomcat7 " to "set SERVICE_NAME=Tomcat7-1"

3 Edit the service.bat file to create the service display name after the service is created. This name can be the same as the display name of other services (it can not be modified).

set PR_DISPLAYNAME=Apache Tomcat 7

4 Modify the names of tomcat7.exe and tomcat7w.exe in the decompression directory to correspond to the names modified before, and modify them to tomcat7-1.exe and tomcat7-1w.exe.

Three reference websites:

http://www.360doc.com/content/14/0419/17/16070877_370340689.shtml

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