Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 894 Bytes

CentOS 安装 Tomcat.md

File metadata and controls

48 lines (37 loc) · 894 Bytes
title gitinfo share comments slug images description tags date
CentOS 安装 Tomcat
true
true
true
centos_Tomcat
常规 常规
Linux
2020-06-23 23:00:04 +0800
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

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 //查看日志