Jenkins之tomcat热部署

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hjtlovelife/article/details/90240061

1、修改tomcat-users.xml文件
进入tomcat/conf目录下,打开tomcat-users.xml文件,添加以下内容
  <role rolename="admin-gui"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <user username="deployer" password="deployer" roles="admin-gui,manager-gui,manager-script"/>
2、访问manager提示403 Access Denied
在浏览器中访问http://localhost/manager/提示403 Access Denied
进入tomcat/webapps/manager/META-INF目录下,打开context.xml文件将对访问的来源受限设置注释

猜你喜欢

转载自blog.csdn.net/hjtlovelife/article/details/90240061
今日推荐