In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
When deploying the test server, some students asked Tomcat to be used as an application server, but after deploying in the windows server 2008 environment, starting the application needs to leave a CMD window on the interface, and sometimes it may be mistakenly closed by others. It is a headache to encounter such a problem, so we will talk about a good way to add startup to the service to ensure that the service will not be stopped by others. It can also be set to boot automatically, so that you don't have to start manually every time.
The steps are as follows:
1. Check the existing services without our Tomcat program, as shown in the following figure:
2. Open the running window, enter cmd to open the dos window, use the command to change the location to the bin file under the tomcat path, and enter service.bat install service_name to install the service. Service_name is the name for the service, which you can name yourself. My name here is Hzb. As shown in the following figure:
3. Check whether our Hzb service already exists in the service, as shown in the following figure:
4. Set the Tomcat program service to boot self-starting, right-click the service, select the properties, and then configure it to be automatic, as shown below:
5. It's done! If you do not need the service in the future, you can also delete it, which is similar to the installation, just go to the bin directory of Tomcat and execute service remove TomcatService. If we accidentally delete the Tomcat file and cannot delete the service if we cannot find it in the directory, there is another way. Under cmd, execute the sc delete service name (if there is a space between the service name, enclose it in double quotation marks), and the service will be deleted successfully. As shown in the following figure:
Conclusion: when you encounter problems, you must be good at thinking and accumulating, grow and sharpen constantly, and grow into a big cow in the IT world as soon as possible!
More highlights are in the video course of Brother Yang. Address: http://edu.51cto.com/lecturer/5811414.html
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.