Two-part recording, 1.TOMCAT installation and 2.tomcat integration process in eclipse
One. Tomcat installation
1. First the computer installs the JDK and sets the environment variable java_home, whose value is the JDK installation directory, such as: Java_home = D:\coding\Java\jdk1.8.0_71
2. Download the Tomcat installation package for the system on the Tomcat website (for example, window here)
3. After unpacking the installation package, configure the environment variable catalina_home, the value is the Tomcat installation directory, such as Catalina_home = D:\coding\apache-tomcat-7.0.67
4. Go to the Bin directory in the Tomcat installation directory, locate the Startup.bat file to start Tomcat, then open the browser input localhost:8080, the browser displays the Tomcat welcome page (e.g.) and the installation is complete.
Two. Eclipse Integrated Tomcat
Open Eclipse, select Window->preferences->server->runtime Environment, and click Add to add the Tomcat address we just installed.
The integration work is complete. We can use Tomcat in eclipse to run the Web project.
Installation of Tomcat and integration in eclipse