### 1. Install Java

Enter Java -version. The version information is displayed

  

Type javac and it will appear

  

The JDK and JRE are installed correctly

2. Install Tomcat

1. Download the Tomcat Windows installation package and decompress it to the target directory. Mine is D:\apache-tomcat-9.0.5

2. Start Tomcat. You are advised to run the command line to view the startup information

3. The startup is successful

### 3. Install Jenkins

1. Download Jenkins’.war package

2. Copy the war package to D: apache-tomcat-9.0.5\webapps.

3. Check whether port 8080 is occupied. You can use QQ computer manager to check whether the network connection is occupied by JAVA, indicating that Tomcat is started correctly

Alternatively, from the command line, in the bin directory, enter netstat -ano, as shown in Figure 2

### 4. Check it out

1. Visit http://localhost:8080/

 

 

2. Visit the Jenkins, http://localhost:8080/jenkins (the first visit may be slower)

Then you need to enter the password, find the file according to the path, and get the password

Follow the prompts to complete the operation