Tomcat installation and Configuration graphics tutorial

Source: Internet
Author: User

The java_home variable that configures JDK,JDK before installing Tomcat must be set up so that Tomcat can find the JDK. Shut down the firewall and so on.

One: Installation version of Tomcat

1, first download tomcat, to http://tomcat.apache.org/

2, note, download can download the zip format or exe format, where the ZIP format as long as the decompression and configuration under the environment variables can be used, like the green version. I use the latter EXE format, this is more convenient for beginners. This article describes the installation and configuration tutorials for tomcat6.0.

3. Download good after:

4. Double-click Install (Note: You should install the JDK before installing)

5. Click "Next"

6. Click "I Agree"

7. Select "Full", then click "Next"

8. If you do not have another server installed, the port will remain the default, as for password to set one yourself. Click "Next"

9, modify the installation path, click "Next"

10. It will automatically search for the JRE in your machine, which is the Java Runtime environment. This is why you need to install the JDK first, click "Install"

11. Wait a minute.

12. Click "Finish" to complete the installation.

13. Test, open the browser, enter: http://localhost:8080 or http://127.0.1.1:8080 appears:

The tomcat installation was successful!

Tomcat Startup and shutdown

Method One: Click "Start" ....

After clicking "Monitor Tomcat" appears in the status bar:

Click "Start Service" to start Tomcat and click "Stop Service" to turn it off.

Method Two: Open doc directly, enter "net start Tomcat6" such as:

You can start Tomcat, which is the easiest way to do it. Stop the Tomcat service: input: "net stop Tomcat6"

II: Free-install version tomcat

After configuring environment variables such as JDK, configure the Tomcat environment variable (also can not be configured, preferably configured)

Double-click Startup.bat under the Bin directory in the Tomcat folder directory

Startup success:

From the startup information, the service port number is: 8080

Third, modify the server startup port number (default is 8080)

All of the configuration files for Tomcat are in the Conf folder, and Server.xml is the core configuration file. Open the Server.xml in the Conf folder

Change 8080 to the corresponding port, and change the port to 80.

You only need to enter port 80 after booting.  Restart to see the effect. 80 port is the default browser port, you can not enter 80, other ports need to enter

Excerpt from: http://www.jeecms.com/hjdj/479.htm

Tomcat installation and Configuration graphics tutorial

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.