环境
操作系统版本信息:
[root@localhost conf]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
JAVA版本信息
[root@localhost conf]# java -version
openjdk version "1.8.0_372"
OpenJDK Runtime Environment (build 1.8.0_372-b07)
OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)
Tomcat版本信息
[root@localhost sbin]# ./tomcat version
Server version: Apache Tomcat/7.0.76
Server built: Nov 16 2020 16:51:26 UTC
Server number: 7.0.76.0
OS Name: Linux
OS Version: 3.10.0-862.el7.x86_64
Architecture: amd64
JVM Version: 1.8.0_372-b07
JVM Vendor: Red Hat, Inc.
防火墙信息:
[root@localhost sbin]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens33
sources:
services: ssh dhcpv6-client
ports: 80/tcp 443/tcp 8080/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
现象
原因
因为使用了yum一键安装tomcat,默认不自动tomcat管理器,需要手动安装管理器:
yum install tomcat-webapps tomcat-admin-webapps