yum安装
# yum install tomcat -y
# 安装完整组件
# yum -y install tomcat-webapps tomcat-admin-webapps
查找安装位置
# rpm -ql tomcat
#启动tomcat
# systemctl start tomcat
#设置开机自启
# systemctl enable tomcat
#查看tomcat状态
# systemctl status tomcat
压缩包安装
1.下载压缩包https://tomcat.apache.org/放到指定目录
2.解压
#tar -zxvf apache-tomcat-8.5.87.tar.gz
3.切换到tomcat sbin目录下启动tomcat :
# ./startup.sh