Win7 installation of Tomcat 9 brief steps:
1. Download Tomcat
Download Tomcat 9.0>core>32-bit/64-bit Windows Service to Tomcat official website https://tomcat.apache.org/download-90.cgi Installer:
After extracting the "Apache-tomcat-9.0.0.m6.exe" file, you can complete the installation by next.
2. Configuring the Tomcat environment variable
New variable name: catalina_base, Variable value: C:\tomcat 9.0;
New variable name: catalina_home, Variable value: C:\tomcat 9.0;
Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin
3. Start Tomcat Service
There are two ways of doing this:
Method #1: Open manually;
Services, management tools, Control Panel, locate Apache Tomcat 9.0 Tomcat9, right-click Properties, set Startup type to Automatic.
Method * 2: Open in command line;
Switch to the bin directory of the TOMCA installation directory, enter the command "CD C:\Program Files\apache-tomcat-7.0.69\bin" and run "Startup.bat"
4. Test whether Tomcat is installed successfully
Enter "http://localhost:8080" or "http://127.0.0.1:8080" in the browser, See a JSP page from Tomcat-the page on the Tomcat basic instructions was installed successfully.
But I opened http://localhost:8080
it and it showed a blank page .
The workaround is shown in the following Scarlet Letter section.
Dos commands for CMD in Windows view the programs and PID numbers that occupy a port:
1, press the shortcut key "Win+r", enter the cmd and press ENTER to enter the DOS environment;
2. View the usage of a specific port:
Take port 8080 As an example, enter the command "NETSTAT-AON|FINDSTR" 8080 "" and press ENTER to display the following, you can see the 80 port corresponding to the program's PID number 3888:
3, according to the PID number to find a port corresponding program:
Continue to enter the command "TASKLIST|FINDSTR" 3888 ":
Through the above query, it is concluded that:
Error reason: Port 8080 is occupied by other programs.
Workaround: Kill the consuming program and restart Tomcat.
4, according to the queried program name, the end of the process:
Enter command "taskkill/f/t/im Java.exe"
How to open a blank page for the Tomcat test page