Server: Tomcat installation

Reprinted: https://www.cnblogs.com/limn/p/9358657.html

Tomcat download installation and configuration

1. Download

tomcat download link: https://tomcat.apache.org/

1. After entering the tomcat official website, select the version you want to download. I use tomcat9, so here I choose tomcat9

2. Choose zip (pgp, sha2, sha512) to download. The advantage of downloading zip is that you don't need to install it, just download and unzip it directly.

3. The download is complete.

 

Two, installation decompression and environment variable configuration

1. Decompress the compressed package directly.

2. Select "This computer", right-click, and select "Properties", as shown in the figure below

 

 3. After selecting to open the properties, select and click "Advanced System Settings" on the left side of the pop-up window.

3. After opening the "Advanced System Settings", click the "Environment Variables (N).." button.

 

4. Set the two system variables CATALINA_HOME and Path separately

CATALINA_HOME=D:\ProgramFiles\apache-tomcat-9.0.10

PathPath=%CATALINA_HOME%\lib

                 %CATALINA_HOME%\lib\servlet-api.jar

                 %CATALINA_HOME%\lib\jsp-api.jar

 

 

5. Add a user and enter the conf of the tomcat9 directory. My path here is D:\ProgramFiles\apache-tomcat-9.0.0.M26\conf,

Select the "tomcat-users.xml" file, open the file and add the following code before the last line of code: 

<role rolename="manager-gui"/> 

<role rolename="admin-gui"/>  

<user username="admin" password="admin" roles="admin-gui"/>

<user username="tomcat" password="admin" roles="manager-gui"/>

 

6. After adding, save and exit.

7. Start the tomcat test, open the bin folder in the tomcat directory, and then double-click startup to start tomcat, the successful startup will display start Server startup in 8352 ms

 

 8. Open the browser and enter http://localhost:8080 or http://127.0.0.1:8080 in the address bar to open the tomcat homepage.

 

 

 9. The configuration is complete.

Guess you like

Origin blog.csdn.net/weixin_38676276/article/details/109045654