2018-02-24 14:53:53 +08:00
|
|
|
|
# Tomcat 安装
|
|
|
|
|
|
2018-10-10 17:31:35 +08:00
|
|
|
|
<!-- TOC depthFrom:2 depthTo:3 -->
|
|
|
|
|
|
|
|
|
|
- [安装](#安装)
|
|
|
|
|
- [启动](#启动)
|
|
|
|
|
- [脚本](#脚本)
|
|
|
|
|
|
|
|
|
|
<!-- /TOC -->
|
|
|
|
|
|
2018-02-24 14:53:53 +08:00
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
安装步骤如下:
|
|
|
|
|
|
|
|
|
|
(1)下载并解压到本地
|
|
|
|
|
|
|
|
|
|
进入官网下载地址:https://tomcat.apache.org/download-80.cgi ,选择合适的版本下载。
|
|
|
|
|
|
|
|
|
|
我选择的是最新稳定版本 8.5.28:http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
|
|
|
|
|
2018-09-29 10:17:07 +08:00
|
|
|
|
我个人喜欢存放在:`/opt/tomcat`
|
2018-02-24 14:53:53 +08:00
|
|
|
|
|
|
|
|
|
```
|
2018-09-29 10:17:07 +08:00
|
|
|
|
wget -O /opt/tomcat/apache-tomcat-8.5.28.tar.gz http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
|
|
|
|
cd /opt/tomcat
|
2018-02-24 14:53:53 +08:00
|
|
|
|
tar zxvf apache-tomcat-8.5.28.tar.gz
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 启动
|
|
|
|
|
|
|
|
|
|
**启动 tomcat 服务**
|
|
|
|
|
|
|
|
|
|
```
|
2018-09-29 10:17:07 +08:00
|
|
|
|
cd /opt/tomcat/apache-tomcat-8.5.28/bin
|
2018-02-24 14:53:53 +08:00
|
|
|
|
./catalina.sh start
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**停止 tomcat 服务**
|
|
|
|
|
|
|
|
|
|
```
|
2018-09-29 10:17:07 +08:00
|
|
|
|
cd /opt/tomcat/apache-tomcat-8.5.28/bin
|
2018-02-24 14:53:53 +08:00
|
|
|
|
./catalina.sh stop
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 脚本
|
|
|
|
|
|
2019-07-11 16:52:31 +08:00
|
|
|
|
| [安装脚本](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft) |
|
2019-02-21 19:26:15 +08:00
|
|
|
|
|
2019-02-26 16:05:09 +08:00
|
|
|
|
## 更多内容
|
2019-02-21 19:26:15 +08:00
|
|
|
|
|
|
|
|
|
- **引申**
|
|
|
|
|
- [操作系统、运维部署总结系列](https://github.com/dunwu/OS)
|