cd /usr/local/ // 进入local文件夹
wget https://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.36/bin/apache-tomcat-9.0.36.tar.gz
没有 wget 请安装
yum -y install wget // 安装wget
tar -zxvf apache-tomcat-9.0.36.tar.gz
mv apache-tomcat-9.0.36 tomcat
/usr/local/tomcat/bin/startup.sh //启动
/usr/local/tomcat/bin/shutdown.sh //关闭
ps -ef|grep java //查看进程
kill -9 //杀死进程
tail -f /usr/local/tomcat/logs/catalina.out //查看日志
原文:https://www.cnblogs.com/borber/p/CentOS_Tomcat.html