1. 解压缩并移动到指定目录
解压缩
1 | tar -zxvf apache-tomcat-8.5.23.tar.gz |
变更目录名
1 | mv apache-tomcat-8.5.23 tomcat |
移动目录
1 | mv tomcat/ /usr/local/ |
2. 常用命令
启动
1 | /usr/local/tomcat/bin/startup.sh |
停止
1 | /usr/local/tomcat/bin/shutdown.sh |
目录内执行脚本
1 | ./startup.sh |
1 | tar -zxvf apache-tomcat-8.5.23.tar.gz |
1 | mv apache-tomcat-8.5.23 tomcat |
1 | mv tomcat/ /usr/local/ |
1 | /usr/local/tomcat/bin/startup.sh |
1 | /usr/local/tomcat/bin/shutdown.sh |
1 | ./startup.sh |