1.先上传安装包到自定目录,上一节已介绍,此处不再叙述。
2.先解压安装包,如图1:

3.可以根据自己重命名文件(随意):

4.移动tomcat到目录/usr/local:

5.在/usr/local/tomcat-frontend/bin目录下使用命令./startup.sh启动tomcat
6.启动完之后再浏览器中输入虚拟机ip地址,有的会出现如下问题:http://192.168.188.128:8080/

解决方法:
1.关闭虚拟机中的防火墙服务。
输入命令: service iptables stop
数据完命令包如下错误:Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: Unit iptables.s
2.service iptables stop可以关闭防火墙,但是没有成功!
因为centos7不能关闭防火墙!
所以,这里要使用
systemctl stop firewalld


网友评论