简体   繁体   中英

How to configure http/manager/html link of Tomcat 8.5?

I am using Tomcat 8.5.3 on Linux.

Can anyone help me to create a Tomcat manager GUI link so that I can access the manager through the server IP?

http://(Domain Ip)/manager/html

It always shows 403 Access denied .

Here is the contents of tomcat-users.xml :

<?xml version='1.0' encoding='utf-8'?>

    <tomcat-users xmlns="http://tomcat.apache.org/xml"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
                  version="1.0">
       <role rolename="tomcat"/>
      <role rolename="role1"/>
       <role rolename="manager-gui"/>
      <user username="tomcat" password="***" roles="manager-gui"/>

    </tomcat-users>

I wanted to reload any project through the GUI's reload button.

I am facing one more problem. Whenever I change my Java files, the server doesn't reflect the changes until I restart Apache Tomcat or I reload the project.

Go to

/usr/local/apache-tomcat-8.5.3/webapps/manager/META-INF

Open context.xml

and Comment the below line in context.xml

 <!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="some ip" />
  -->

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM