Installation and configuration of Tomcat7.0
1.
Verify that the JDK is installed and configured successfully
Shortcut key--win+r: Enter cmd, open command prompt
Input java-version, carriage return
Input javac-version, carriage return
If the following information appears, installation and configuration is successful.
2. At this point, Tomcat can be installed. After downloading the compressed package, extract directly to a directory, the directory can not contain Chinese. After decompression, the following is shown:
3.
Next you start to configure the environment variables.
Then create a new three system variable:
Tomcat_home=d:\java\tomcat\tomcat 7.0
Catalina_home=d:\java\tomcat\tomcat 7.0
Catalina_base=d:\java\tomcat\tomcat 7.0
4.
The final addition of%tomcat_home%\lib\servlet-api.jar in Classpath;
Add%catalina_home%\bin to the top of the path;
Note: The front and back order does not affect 5.
At this point, the configuration work is complete. Open the Bin folder and double-click Startup.bat
It automatically opens the following console interface.
Do not close the console interface, open the browser, enter http://localhost:8080
A Tomcat Web page appears, proving the installation and configuration succeeded.
Close the console, close the console, and turn off the Tomcat service
Configure tomcat7.0 on Eclipse and create a project release
1. Open Eclipse: Install JDK1.7 before opening, because Eclipse requires JDK.
2. Find ' Preferences ' under ' Window ', click ' Preferences '.
3. Find ' Preferences ' and find the server---rntime evironment
4. Click ' Add ' to add a new running environment.
5. Select ' Apache Tomcat 7 ' and click ' Next '
6. Select the JRE running environment, choose jre7 here
7. Click ' Finish ' to see the added success
8. Now to create a Web engineering test: Create a Dynamic Web project
9.
Enter project name: Test
Select Web Server:tomcat&
Select Servlet version: servlet3.0
Click ' Finish ' to finish
10. View the Project
11.
Create a index.jsp file under engineering webcontent:
Click ' Finish ' to create a complete
12. Open JSP file: Enter
13.
Save content, select Index.jsp, right-click to select Run as in the Select ' Run to Server ' last click ' Finish '
14. Start the server and display the page effect