CentOS部署TOMCAT8

官网下载地址:https://tomcat.apache.org/download-80.cgi

版本:TOMCAT 8 —— Core——tar.gz

 

首先需要将文件传输到CentOS的/usr/soft目录下

cd /usr/soft/

 

使用tar命令解压

tar -zxvf apache-tomcat-8.5.40.tar.gz

 

进入tomcat的bin目录

cd到 /usr/soft/apache-tomcat-8.5.40/bin

 

运行服务

./startup.sh

 

网页访问

本机ip:8080
#成功访问tomcat页面即服务运行成功

 

关闭 TOMCAT服务

./shutdown.sh
posted @ 2019-06-07 13:15  WhoYoung  阅读(769)  评论(0编辑  收藏  举报