How to install and configure your Tomcat 5 and bind a domain name

Source: Internet
Author: User

Install JDK first. After downloading it, assume that it is installed in c: jdk.

Then install Tomcat. Suppose you have installed it in c: omcat.

Set the environment variable below: click "my computer"-"properties"-"advanced"-"environment variable"-"New" name input: path value input: C: jdkin ;.; add other variables in sequence, whose names and values are:

CLASSPATH=c:jdklibdt.jar;c:jdklibools.jar; JAVA_HOME=c:jdk; TOMCAT_HOME=c:omcat;

To c: omcatin, double-click startup. start tomcat at bat, open IE, and enter http: // localhost: 8080. It will take a long time for the kitten to appear. This indicates that your tomcat configuration has been successful.

However, at present, we can only access through the Internet through an IP address, which is inconvenient. The following describes how to bind a Domain Name: Enter c: omcatconf to open server. xml

<Connector port="8080"

Change

<Connector port="80"

Because port 80 is enabled by default on the WEB, find

<Host name="localhost"

Change it

<Host name="www.***.com"

Then go to C: omcatconfcatalina and rename localhost to www. ***. com.

And restart tomcat.

Enter your domain name: www. ***. com>? Okay.

The following is a tip for you: tomcat's WEB Background Management. I believe many people have used it, which is more convenient than handwritten server. xml.

Open C: omcatconfomcat-users.xml in

</tomcat-users>

Add the following paragraph before:

<user username="123" password="123" roles="admin,manager,tomcat"/>

In this way, we have added the 123 user, whose password is also 123, and it also has the admin, manager, and tomcat role permissions.

The following dialog box is displayed at www. ****. com/manager/html. Enter the user name and password to go to tomcat web application manager.

There is a Server Status used to check the system Status. After you click it, we can see the system version, the Server operating system, and the currently active processes. The rest will not be detailed, you can try it on your own.

Open http: // www. ****. com/admin/index. jsp

After entering the user name and password, you will be taken to the Tomcat Web Server Administrator background. For more information about how to use the password, see it.

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.