title | gitinfo | share | comments | slug | images | description | tags | date | |
---|---|---|---|---|---|---|---|---|---|
CentOS 安装 Tomcat |
true |
true |
true |
centos_Tomcat |
常规 常规 |
|
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
/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 //查看日志