Www.2cto.com
1. Configure Environment Variables
After downloading and installing JDK, add it to the Environment Variable
The variable name is JAVA_HOME, And the JDK installation directory.
Variable name CLASSPATH, variable value.; JDK installation \ jre \ lib \ rt. jar.
Variable name PATH, variable value JDK installation directory \ bin.
2. Download and install Tomcat
Now the latest version is Tomcat7.0. Open http://tomcat.apache.org/download-70.cgiand download the zipping of core.zip.
Decompress the package to drive C and open startup. bat in the bin directory.
Iii. Test whether Tomcat is started
Open the browser and enter localhost. If port 80 is occupied, open the server under the conf directory under the Tomcat directory. in the xml configuration file, search for the port to change the port value after ctor to 8080 and restart the Tomcat server.
Enter http: // localhost: 8080 or http: 127.0.0.1: 8080 in the browser to display the test page.