Tomcat download and installation tutorial (no, this is for window10)

1. Download tomcat
and open the tomcat official website with a browser: http://tomcat.apache.org/
Insert picture description here
Select the latest Tomcat 9 under Download in the navigation bar on the left, and click "64-bit Windows zip (pgp, md5, sha1)" proceed to
Insert picture description here
download and complete
Insert picture description here
2. Install tomcat
and use it after decompression
Insert picture description here
3. Configure environment variables
1. Configure jdk environment variables (omitted)
2. Create a new variable name in the system variables: CATALINA_BASE, variable value: D:\tomcat \apache-tomcat-9.0.0.M9
Create a new variable name in the system variables: CATALINA_HOME, variable value: D:\tomcat\apache-tomcat-9.0.0.M9
Open PATH in the system variables, and add a variable value: %CATALINA_HOME %\lib;%CATALINA_HOME%\bin
3. Open cmd, enter the bin directory under tomcat, and execute "service.bat install". Attachment: service uninstall command: service.bat remove
Insert picture description here
4.
There are two ways to start tomcat :
1. Method 1. : Double-click to open the tomcat9w.exe in the bin folder under the tomcat path, and click "start" in the opened software management software.
Insert picture description here
2. Method 2: Right-click "My Computer" -> "Management" -> on the desktop "Services and Applications" -> "Services", find the "Apache Tomcat 9.0 Tomcat9" service, right-click the service, and select "Start".

After tomcat is started, you can find the "Commons Daemon Service Runner" process in the process of the task manager. Under this process, there is a service of "Apache Tomcat 9.0 Tomcat9" running;
5. Test whether the installation is successful.
Use the browser to open http:/ /localhost:8080/, if it is successfully opened, it means tomcat is installed and running successfully

Guess you like

Origin blog.csdn.net/qq_41661800/article/details/108286988