Detailed analysis of Java 8 + Tomcat 9 installation methods in Win10 system, win10java8
Detailed analysis of the Java 8 + Tomcat 9 Installation Method in Win10 system.
Install Java
Download from the official website.
Next, let's take a look at it step by step.
Run the downloaded exe program
Set jdk path
Then set the jre path.
Wait until installation is complete
Right-click This computerEnter Attribute
Click Advanced System settings
Click Environment Variable
ThenJava environment variable three connectionsNow.
Add JAVA_HOMEAdd PATHAdd CLASSPATH
Copy the corresponding jdk path to the JAVA_HOME environment variable
PATH and CLASSPATH are fixed
Then
Check whether the installation is successful. Click Win + x, Select Run, Enter Command Line
Input Java, Indicates that the command is successful. If no command is found, the command fails.
Input Javac, Indicates that the command is successful. If no command is found, the command fails.
Input Java-versionIf you check the version, the command is successful. If you cannot find the command, the operation fails.
Install Tomcat 9
Download it from the official website or click atat9.0.4 _ win_x64. Password: htz2
Decompress the Tomcat9.0.4 package, copy the path, and add it TOMCAT_HOMEEnvironment variable, which needs to be created.
Create CATALINA_HOMEEnvironment variable, copy the same path
In PATHAnd CLASSPATHAdd,
Open command line Input Service install Tomcat9 Installation
OpenControl Panel-> system and security-> management tools, ClickService
Find the Tomcat9.0 Service, right-click to enable
Decompress the bin directory of the directory.Batch Processing commands enabled and Disabled
Open your browser and typeTest https: // localhost: 8080. If it appears, it indicates that it is successful.
Last
Java and Tomcat are both very practical. It is necessary to master them earlier.I like to remember to like it. If you have any suggestions or comments, you can also follow me secretly.