Tomcat7.0 installation configuration details (graphic)

Source: Internet
Author: User

Mainly introduces the Tomcat7.0 installation configuration detailed graphic method, the need for friends can refer to the following (this article transferred from http://www.jb51.net/article/51909.htm)

Description: A Web server on the tomcat server that complies with the Java EE Standard cannot run the EJB program in Tomcat, and if you want to run a container that can choose to run the EJB program Weblogic,websphere,jboss, etc.
Tomcat Download: http://tomcat.apache.org/

1. Go to the above Web site and then use Window service Installer (Add Service for window):

2. Then we do the installation


Explain:
The previous version was not about role settings, and when it was 7.0, there was a setting, which also indicated that Tomcat was concerned about permissions


Port number for a tomcat run: 8080

Default port number: 80, which means no port number, default input is 80


The rest of the basic is the default, there is nothing special, here I explain the Tomcat after the installation is complete directory has
Bin------to hold Tomcat scripts for startup and shutdown
Conf-----contain different configuration files
Work----Store the class file generated by the JSP after compilation
WebApp the directory where the application is stored
Log file-----
LIB------the jar files needed to store Tomcat
Doc-----Store various tomcat documents
Run the Tomcat server with the Bin/startup.bat command (you can also start with a small circle icon)
Open htt://localhost:8080
To see if the service starts properly
If it appears, the server installation is successful


tomcat7.0 the configuration of the virtual directory:

1. First enter the Tomcat 7.0conf directory

2. Then click on the Tomcat 7.0confCatalinalocalhost directory

3. Finally create a virtual directory with the name of the XML file as follows: First name. xml

Copy CodeThe code is as follows:
< Context path= "/name" docbase= "D:tomcat 7.0 folder name" debug= "5" reloadable= "true" crosscontext= "true"/>

The virtual directory is created. In the future, you can do this in this virtual directory.

(The above and previous versions of the virtual directory configuration is different, please treat differently)

If the software is used, the default is to publish the project to Tomcat's WebApp folder, which is inconvenient and affects each other (such as MyEclipse).

Write a simple HelloWorld and feel the JSP:

?
12345678 <title>简单的程序</title><body><%="chenhailong,hello world"%></body>

Here are the other users to add:

Tomcat7.0.22 the detailed configuration process under Windows

First, JDK1.7 installation

1. Download jdk,:http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html

2. Add system environment variables, my computer, properties---Advanced environment variables (if the environment variable you added already exists, click "Edit" to add it, or click "New" to add)

(1) Variable name: Java_home variable Value: D:\Program files\java\jdk1.6.0_29 (click "New", enter variable name, variable value, no semicolon required at the end of the variable value)
(2) Variable name: CLASSPATH variable Value: D:\Program files\java\jdk1.6.0_29\lib\dt.jar;d:\program files\java\jdk1.6.0_29\lib\ Tools.jar ("New", no semicolon required at the end of the variable value)
(3) Variable name: Path variable Value: D:\Program files\java\jdk1.6.0_29\bin ("edit", the value of the variable is separated by a semicolon, the value of the variable does not need a semicolon at the end)

3, "Start", "Run", input cmd, enter "Java-version", "Java", "Javac" several commands at the command prompt, the screen shows that the environment variable configuration is successful

Second, Tomcat7.0.22 installation configuration

1. Download tomcat7.0.22:http://tomcat.apache.org/download-70.cgi

2, add system environment variables, my computer, properties---Advanced system settings, environment variables (Operation IBID.)

(1) Variable name: Catalina_base variable Value: D:\Program files\apache-tomcat-7.0.22 (the directory that Tomcat extracted to)
(2) Variable name: Catalina_home variable value: D:\Program files\apache-tomcat-7.0.22
(3) Variable name: Catalina_tmpdir variable value: D:\Program files\apache-tomcat-7.0.22\temp
(4) Variable name: Path variable value: D:\Program files\apache-tomcat-7.0.22\bin

3, run Tomcat7.0.22, "Start", "Run", input cmd, enter startup.bat at the command prompt, then pop up the tomcat Command box, output the startup log; open Browser input http://localhost : 8080/, if you enter the Tomcat welcome interface, then congratulations, configuration successful

Tomcat7.0 installation configuration details (graphic)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.