您的位置 首页 tomcat

tomcat 打开 manger 界面

tomcat 打开 manger 界面

1

conf/tomcat-users.xml

2-

 

下边的才可以

 <role rolename ="admin-gui"/>
 <role rolename ="admin-script"/>
  <role rolename ="manager-gui"/>
  <role rolename ="manager-status"/>
  <role rolename ="manager-script"/>
  <user username ="admin" password ="admin" roles ="manager-gui,manager-status,manager-script,admin-gui,admin-script"/> 
 

 

3 - webapps/manager/META-INF/context.xml

注销对应内容,增加:

<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />

 

然后

 

allow如果要容许其他内网ip或者localhost。可以参考如下:

<Context privileged="true" antiResourceLocking="false"
         docBase="${catalina.home}/webapps/manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.0.0.1|::1|0:0:0:0:0:0:0:1|localhost" />
</Context>

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章