In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Set Tomcat to automatically start the service:
Recently, I encountered a problem. The project on the server could not be accessed suddenly, so I went to the server to restart the tomcat service. Who knew that in the end, the tomcat service reported an error and the option to restart the service?
No, I didn't deploy this project before, so I studied how to set tomcat into the service. After all, everyone wants to start tomcat manually every day.
Step 1: use the cmd command to go to the bin directory under your tomcat file, and my tomcat is on disk D.
Step 2: enter service install tomcat7Test
Tomcat7Test is the name of the service. You can take any value you like. The default is tomcat7. You can see that the service has been successfully installed. Next, select the service.
Check to see if the service is available.
You can see that you already have it, and then just set it to start automatically, isn't it very simple?
Remove the service:
Enter the service remove service name
The tomcat service has been successfully removed
Supplement: how to uninstall existing services:
1 command line: services.msc finds the service that it needs to uninstall, first changes the service startup type to disabled, and then finds the name in the attribute. For example: Tomcat7
2 command line: execute sc delete Tomcat7
The returned result is as follows: the table name was successfully unloaded:
C:\ Users\ Administrator > sc delete Tomcat7
[SC] DeleteService succeeded
3 return to the service management list and refresh. It is found that the service we need to uninstall is gone.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.