In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.