tag: HTTP Java OS art management Div
1. Configure Tomcat environment variable 1, new variable name: catalina_base, variable value: C: \ Tomcat 2, new variable name: catalina_home, variable value: C: \ Tomcat 3, open Path and add the variable value: % catalina_home % \ Lib; % catalina_home % \ bin. There are two ways to start the Tomcat service: 1. Method 1: Enter the command under the CMD command: startup. The following dialog box is displayed, indicating that the service is successfully started. 2. Method 2: Right-click "my computer" on the desktop-> "manage"-> "services and applications"-> "services" and find the "Apache Tomcat" service, right-click the service, select "properties", and change "Startup Type" from "Manual" to "automatic ". 3. Test tomcat. Open the browser and enter http: // localhost: 8080 in the address bar. If you see a JSP page that comes with tomcat, your JDK and tomcat have been set up successfully. Note: 1. The path in java_home cannot end with a semicolon, for example, c: \ Program Files \ Java \ jdk1.7.0. 2. The path in catalina_base, catalina_home, and tomcat_home cannot end. 3. The java_home path must not be written as the JRE path. 4. When modifying or adding a variable to an environment variable, be sure to check whether there are extra letters, including semicolons and spaces. The author simply adds a letter to the path, and the configuration fails. If the configuration fails, check it repeatedly. The above error is very prone to errors: catalina_home or java_home is not configured properly. If the error message "The catalina_home environment variable is not defined correctly" appears"