How to install Configure your TOMCAT5 and bind domain names

Source: Internet
Author: User
Tags bind variables domain domain name tomcat
Install the JDK first and assume that the C:\JDK is loaded after downloading
  
Then install the tomcat5.0 hypothesis to install to C:\tomcat
  
Set the environment variables below:
Click on "My Computer"-"Properties"-"advanced"-"Environment variables"-"new"
  
Name Input: Path value input: C:\jdk\bin;;
  
Add the other variables in turn, with the names and values of:
  
Classpath=c:\jdk\lib\dt.jar;c:\jdk\lib\tools.jar;
JAVA_HOME=C:\JDK;
Tomcat_home=c:\tomcat;
  
Under C:\tomcat\bin, double-click Startup.bat to start Tomcat,
  
Open IE, enter http://localhost:8080
  
Well, the long-awaited kitten appears, which means your Tomcat has been configured successfully.
  
But at present we can only access through the IP network, very inconvenient, the following how to bind the domain name:
  
Into the c:\tomcat\conf.
  
Open Server.xml
  
Will find
And then into the C:\tomcat\conf\catalina\.
  
Rename the directory localhost to www.***.com
  
OK, then restart Tomcat.
  
Enter your domain name: how www.***.com? It's OK.
  
Here are some tips for you, that is, Tomcat Web admin, I believe many people have used it, it is indeed more convenient than handwritten server.xml.
  
Open C:\tomcat\conf\tomcat-users.xml
  
InBefore joining such a paragraph:
  
  
So we added 123 to this user, and the password is 123, and it has admin,manager,tomcat role permissions.
  
Below opens the URL: www.***.com/manager/html appears a dialog box, enters the username and the password: enters.
  
Entering Tomcat Web Application Manager
  
One of the server status to detect the state of the system, we can see the version of the system, the server's operating system, and the current active process, and so on, others do not elaborate, you can try to use.
  
Open http://www.***.com/admin/index.jsp
  
Enter the user and password into the Tomcat Web Server Administrator backstage, the specific how to use, I believe you know, and then no more said, we have any comments or questions, welcome to-Amoy network www.tot.name-together to exchange.
  
I hope this article can be helpful to you, the above is tomcat in Windows configuration example, Linux configuration, and then send it after I finish.

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.