Set Tomcat to automatically start the service: I recently encountered a problem. The project on the server suddenly could not be accessed. I went to the server to restart the tomcat service. Who knew that in the end the tomcat service reported an error? The option to restart the service No, I didn't deploy this project before, so I studied how to set up Tomcat in the service. After all, no one wants to start Tomcat manually every day. Step 1: Use cmd command to enter the bin directory under your tomcat file. My tomcat is in drive D. Step 2: Enter service install tomcat7Test tomcat7Test is the service name, you can take any value, the default is tomcat7, you can see that the service has been successfully installed, then take the service See if there is such service You can see that it is already there, and then just set it to start automatically. Isn't it very simple? To remove a service: Enter service remove service name The tomcat service has been successfully removed Supplement: How to uninstall existing services: 1 Command line: services.msc Find the service you want to uninstall, first set the service startup type to disabled, and then find the name in the properties. For example: Tomcat7 2 Command line: Execute sc delete Tomcat7 The returned result is as follows, and the table name uninstall service is successful: C:\Users\Administrator>sc delete Tomcat7 3 Return to the service management list and refresh. We found that the service we needed to uninstall was gone. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: mysql batch delete large amounts of data
>>: In-depth explanation of Vue multi-select list component
Table of contents 1 Background 2 Create a contain...
Docker installation 1. Requirements: Linux kernel...
Table of contents 1. Introduction 2. Main text 2....
When using MYSQL, triggers are often used, but so...
Table of contents 1. BOM 2. Composition of BOM 2....
Vue parent component calls the function of the ch...
The Linux system is a typical multi-user system. ...
Table of contents 1. Basic principles 2. Specific...
This article does not have any quibbles, it is jus...
This article shares with you the solution to the ...
1. Display effect: 2, html structure <div clas...
This article mainly introduces three methods of i...
This article introduces how to install the system...
The temperament of a web front-end website is a fe...
Table of contents Preface Jump to APP method URL ...