1.首先需要安装jdk
yum install java-1.8.0-openjdk-devel.x86_64
2.下载
http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.43/bin/apache-tomcat-8.5.43.tar.gz
3.解压
tar -zxvf apache-tomcat-8.5.43.tar.gz
4.进入bin目录
/apache-tomcat-8.5.43/bin
5.启动关闭命令
启动tomcat
sh startup.sh
停止tomcat
sh shutdown.sh
6.开放防火墙端口
开放端口 firewall-cmd --zone=public --add-port=8080/tcp --permanent
使配置生效 firewall-cmd --reload