[英]How to configure http/manager/html link of Tomcat 8.5?
I am using Tomcat 8.5.3 on Linux. 我在Linux上使用Tomcat 8.5.3。
Can anyone help me to create a Tomcat manager GUI link so that I can access the manager through the server IP? 谁能帮助我创建Tomcat管理器GUI链接,以便我可以通过服务器IP访问管理器?
http://(Domain Ip)/manager/html
It always shows 403 Access denied
. 它始终显示
403 Access denied
。
Here is the contents of tomcat-users.xml
: 这是
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. 我想通过GUI的重新加载按钮重新加载任何项目。
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.
每当我更改Java文件时,服务器都不会反映这些更改,直到重新启动Apache Tomcat或重新加载项目为止。
Go to
去
/usr/local/apache-tomcat-8.5.3/webapps/manager/META-INF
Open context.xml
打开context.xml
and Comment the below line in context.xml
并在context.xml中注释以下行
<!--
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="some ip" />
-->
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.