美文网首页
Tomcat manager的使用

Tomcat manager的使用

作者: 第四单元 | 来源:发表于2018-05-23 23:38 被阅读35次

在server.xml中要有localhost的配置,能通过localhost访问Tomcat管理页面是前提。

默认没有用户需要配置登录用户在tomcat-users.xml中

注意只加了一行<user .../>

<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">
<user username="xiao" password="xuefei" roles="manager-gui,manager-status" />
</tomcat-users>

重启tomcat后,通过localhost/manager/可访问manager页面

在这里可以start stop应用
可以取消部署应用(只是把webapp里的响应文件删了),不会修改配置文件

可以通过取消部署、再上传war文件的方式来快速更新一个应用,不用重启tomcat。

start stop 取消部署应用的地方


TIM截图20180523233709.png

上传war文件的地方,上传后自动解压在webapp目录下


TIM截图20180523233804.png

相关文章

网友评论

      本文标题:Tomcat manager的使用

      本文链接:https://www.haomeiwen.com/subject/hzzdjftx.html