1.下载Tomcat8压缩包
进入http://tomcat.apache.org/download-80.cgi
2.使用finalShell工具上传到/home/java文件夹下
3.解压 [root@localhost ~]# cd /home/java/
[root@localhost java]# tar -zxvf apache-tomcat-8.5.51.tar.gz
4.配置tomcat server.xml把8080,修改成80
vi /home/tomcat/apache-tomcat-8.5.16/conf/server.xml
5.配置防火墙,开放80端口
[root@localhost ~]# firewall-cmd --zone=public --add-port=80/tcp --permanent
[root@localhost ~]# firewall-cmd --reload
6.启动tomcat
[root@localhost ~]# /home/java/apache-tomcat-8.5.51/bin/startup.sh
8.测试
浏览器输入http://192.168.1.171