前提:有java环境
1、os
[root@three ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
2、yum
[root@three ~]# yum install -y tomcat
再yum一个
[root@three ~]# yum install -y tomcat-admin-webapps
3、改一个文件
[root@three ~]# vim /etc/tomcat/tomcat-users.xml
末尾第二行添加
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="admin-gui,manager-gui"/>
</tomcat-users>-----末尾的最后一行,不要添加
4、测试:
http://localhost:8080/manager/html