安装jdk
yum search java-11-openjdk
yum install -y java-11-openjdk
安装tomcat
wget https://mirrors.bfsu.edu.cn/apache/tomcat/tomcat-9/v9.0.41/bin/apache-tomcat-9.0.41.tar.gz
tar -zxvf apache-tomcat-9.0.41.tar.gz
mv apache-tomcat-9.0.41 /usr/local/tomcat9
启动
/usr/local/tomcat9/bin/startup.sh
停止
/usr/local/tomcat9/bin/shutdown.sh