========================================================== ========================================================== ======================================
Setp1: Install JDK, tomcat, and associated: Reference: http://jingyan.baidu.com/article/8065f87fcc0f182330249841.html
========================================================== ========================================================== ======================================
1. Install the Tomcat server
:http://tomcat.apache.org/
2. Install jdk1.7
:http://www.oracle.com/technetwork/java/javase/downloads/index.html
3. Configure environment variables related to JDK and tomcat to associate JDK with Tomcat.
JDK: 1, java_home, variable value: C: \ Program Files \ Java \ jdk1.7.02, path: % java_home % \ bin; % java_home % \ JRE \ bin3, classpath :.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jartomcat: 1, catalina_base, variable value: Tomcat root directory 2, catalina_home, variable value: Tomcat root directory 3, path: % catalina_home % \ Lib; % catalina_home % \ bin
4. Start the Tomcat Service
CMD to enable Tomcat service command: startupps: the shutdown command is used by default. It seems that it is in conflict with the shuwdown command in the window. You can go to the bin directory of Tomcat to shutdown. you can change the name of BAT to another one.
5. Check whether JDK is properly installed.
Check command: javac, Java, javadoc version view: Java-version and above all values are returned is normal!
6. Enter http: // localhost: 8080 in the browser. The startup page is displayed, and the installation is successful!