How to implement the Tomcat Server Web page deployment in CentOS

Source: Internet
Author: User
Tags tomcat server apache tomcat

Steps:

1. Login to CentOS and enter the installation directory for Tomcat [/usr/local/apache-tomcat-7.0.68/conf] to locate the file Tomcat-users.xml and change its contents to:

<role rolename= "Tomcat"/>  <role rolename= "Role1"/> <role  rolename= "manager"/>   < Role rolename= "Manager-gui"/>  <role rolename= "admin"/>    <role rolename= "Admin-gui"/>    <role rolename= "Manager-script"/>    <role rolename= "manager-jmx"/> <role    rolename= " Manager-status "/>   <user username=" Tomcat "password=" Tomcat "roles=" Tomcat "/> <user username=  " Both "password=" Tomcat "roles=" Tomcat,role1 "/>  <user username=" Role1 "password=" Tomcat "roles=" Role1 "/ >  <user username= "admin" password= "admin" roles= "tomcat,role1"/> <user username=  "Tomcat" Password= "" roles= "Manager-gui"/>  <user username= "******" password= "******" roles= "admin-gui,admin, Manager-gui,manager,manager-script,manager-jmx,manager-status "/>

As shown in.

2. Restart Tomcat to make the Tomcat-users.xml configuration effective. Go to Tomcat's [/usr/local/apache-tomcat-7.0.68/bin] directory and execute the command:./shutdown.sh close Tomcat. Then execute the command:./startup.sh to turn on Tomcat.

3, enter the HTTP://[TOMCAT server's ip]:8080/carriage return in the browser, enter the following interface.

You can see that the Tomcat installed in the CentOS system is Apache tomcat/7.0.68.

4, click on the "Manager App", enter the user name and Password dialog box, enter the Tomcat-users.xml file <user username= "******" password= "******" roles= " Admin-gui,admin,manager-gui,manager,manager-script,manager-jmx,manager-status "/>[in the yellow mark in the picture" Username and password corresponding values, you can login tomcat. How to deploy the project after landing, you can Baidu by yourself.

How to implement the Tomcat Server Web page deployment in CentOS

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.