Tomcat的后台管理功能
配置 Tomcat 后台授权用户
1 | [root@iZuf6iq8e7ya9v3ix71k0pZ tomcat]# vim tomcat-8081/conf/tomcat-users.xml |
刷新manager.html页面,还是403,后面重新启动tomcat,403,这就奇怪了…
还是403
后面查看相关tomcat官网,还需要此manager.xml文件,赋予远程管理的权限
Each deployed webapp has a context.xml file that lives in $CATALINA_BASE/conf/[enginename]/[hostname] (conf/Catalina/localhost by default) and has the same name as the webapp (manager.xml in this case). If no file is present, default values are used.
So, you need to create a file conf/Catalina/localhost/manager.xml and specify the rule you want to allow remote access.
1 | [root@iZuf6iq8e7ya9v3ix71k0pZ localhost]# pwd |
重新启动 tomcat,刷新manger.html

发布服务到服务器端
配置二级域名解析

服务的分布结构
8083 manager.smniuhe.com rudy-manager-web(表现层)
8084 smniuhe.com:8084 rudy-manager(服务层)
8085 smniuhe.com:8085 rudy-content(服务层)
1 | # 查看服务器内存占用情况 |
热部署图


![[服务器太卡啦]](/2018/03/25/Tomcat-热部署/后台管理.png)