"Tomcat" Configuration Tomcat

Source: Internet
Author: User

The reason for writing this blog post: Because the MAVEN project was released, it was never accessible. So I reconfigured Tomcat by the way.

1. First download a Tomcat7 version of the ZIP package to the official website, after decompression, into the C-drive (according to personal needs to place).

2. Modify the Conf/tomcat-users.xml file:

<role rolename= "Manager-gui"/>
<role rolename= "Admin-gui"/>
<user username= "admin" password= "admin" roles= "Manager-gui,admin-gui"/>

Add the following lines: A new Administrator admin privileges user, password is admin (can be set according to individual needs)

Note: These three rows are added and cannot be accessed if written in the following two lines.

<role rolename= "Tomcat"/>
<user username= "admin" password= "admin" roles= "manager"/>

3. Configure Environment variables

First add the Cataline_home variable, this is the path of Tomcat

Then add bin and lib two paths after the path variable.

4. Input: http://localhost:8080/manager/html

Login with Admin+admin, you can enter the Tomcat management page, if there is 403, is above 2. No pairing.

5. Of course, you can also go to modify the Access port Conf/server.xml file Ctrl+f search 8080 and then change to the port you need. Usually change to 6080 to avoid conflicts with other ports.

Ps:

If eclipse cannot add a tomcat container, you can reconfigure it this way, configure the environment variable, restart Eclipse, add the Tomcat path through WINDOW-TOMCAT, configure the server and create a new Tomcat container. Load Web projects into containers for pleasant access.

"Tomcat" Configuration Tomcat

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.