使用tomcat前端页面部署项目
提示:浏览器页面使用Tomcat-Manager部署war项目
例如:访问 http://127.0.0.1:8001/manager/html
文章目录
一、第一步修改:
找到Tomcat安装目录:
示例:apache-tomcat-9.0.10\webapps\manager\WEB-INF\web.xml
将 上传文件限制改成符合自己的要求 204857600(200M)
<multipart-config>
<!-- 50MB max -->
<max-file-size>204857600</max-file-size>
<max-request-size>204857600</max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>
二、编辑tomcat下conf文件夹下的tomcat-users.xml
1.1、标签
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<user username="admin" password="123456" roles="manager-gui,manager-status"/>
username、password自定义
1.2、图片示例
三、取消tomcat限制ip
tomcat文件夹下的webapps/manager/META-INF/context.xml文件夹的以下内容注掉
四、重启tomcat
总结
以上就是今天要讲的内容,本文仅仅简单介绍了 浏览器页面如何使用Tomcat-Manager部署war项目,而这种方式大大能使我们快速便捷地处理项目的部署。