配置tomcat通过客户端访问

时间:2023-03-10 02:35:33
配置tomcat通过客户端访问

1:在tomcat    conf/tomcat-users.xml 文件里  配置用户名和密码,以及访问方式

For example, to add the manager-gui role to a user named     tomcat with a password of s3cret, add the following to the    config file listed above.

<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>

Note that for Tomcat 7 onwards, the roles required to use the manager    application were changed from the single manager role to the    following four roles. You will need to assign the role(s) required for    the functionality you wish to access.

  • manager-gui - allows access to the HTML GUI and the status          pages   //可以通过网页访问 ,rolename=manager-gui
  • manager-script - allows access to the text interface and the          status pages
  • manager-jmx - allows access to the JMX proxy and the status          pages
  • manager-status - allows access to the status pages only

2:通过用户名和密码访问,可以通过html发布项目

配置tomcat通过客户端访问