1.我们新建一个文件夹,将下载好的tomcat包放入其中
mkdir /usr/tomcat
2.将tomcat进行解压
tar -zxvf apache-tomcat-8.5.55.tar.gz -C /usr/web
3.启动tomcat
cd /usr/web/apache-tomcat-8.5.55/bin
在bin目录下输入 sh startup.sh
4.查看是否成功
ps -ef|grep tomcat
5.防火墙查看端口的命令
systemctl status firewalld
防火墙开放端口命令(80端口)
firewall-cmd --zone=public --add-port=80/tcp --permanent