linux-tutorial/docs/deploy/tool/tomcat/install-tomcat.md

40 lines
925 B
Markdown
Raw Normal View History

# Tomcat 安装
## 安装
安装步骤如下:
1下载并解压到本地
进入官网下载地址https://tomcat.apache.org/download-80.cgi ,选择合适的版本下载。
我选择的是最新稳定版本 8.5.28http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
我个人喜欢存放在:`/opt/software/tomcat`
```
wget -O /opt/software/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/software/tomcat
tar zxvf apache-tomcat-8.5.28.tar.gz
```
## 启动
**启动 tomcat 服务**
```
cd /opt/software/tomcat/apache-tomcat-8.5.28/bin
./catalina.sh start
```
**停止 tomcat 服务**
```
cd /opt/software/tomcat/apache-tomcat-8.5.28/bin
./catalina.sh stop
```
## 脚本
| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/tomcat) |