1.下载tar.gz
http://tomcat.apache.org/download-80.cgi
we can also use wget to get tar.gz online
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.21/bin/apache-tomcat-9.0.21.tar.gz
2. unzip
tar xzvf
3. startup tomcat
./bin/startup.sh
4.access tomcat through localhost:8080
Note: firewall in linux will block the access of 8080, so we need to open 8080 port in firewall in following steps:
reference:(https://blog.csdn.net/weixin_42673046/article/details/82901541)
4.1 check firewall running state
```
firewall-cmd --state
```
4.2 list ports that allowed to be accessed through firewall
```
firewall-cmd --permanent --zone=public --list-ports
```
4.3 add port access in firewall
```
firewall-cmd --zone=public --add-port=8080/tcp --permanent
```
4.4 reload firewall
```
firewall-cmd --reload
```
4.5 list ports again(optional)
```
firewall-cmd --permanent --zone=public --list-ports
```
![](https://box.kancloud.cn/932b578969bc8d3068ce3b67d00cfe76_599x173.png)
关闭防火墙
~~~
systemctl stop firewalld.service
service firewalld stop
~~~
启动防火墙
~~~
systemctl start firewalld.service
service firewalld start
~~~
修改开机启动项
ntsysv
- 第一章 Linux
- 1. Linux安装和网络配置
- 2. Linux基本命令
- 3. Xshell和winscp
- 4. VIM编辑器
- 5. 安装软件
- 5.1 安装JDK
- 5.2 安装TOMCAT
- 5.3 安装MySql
- 5.4 安装Nginx
- 5.5 部署工程
- 第二章 Nginx
- 1. 安装Nginx
- 2. 配置Nginx
- 2.1 配置静态服务器
- 2.2 配置反向代理
- 2.3 配置负载均衡
- 2.4 配置动静分离
- 2.5 跨域访问
- 第三章 Redis
- 1. 安装Redis
- 2. JAVA操作Redis
- 3. Redis事务
- 4. Redis持久化
- 5. 主从复制和集群
- 6. Redis实现Session共享
- 第四章 MySQL主从复制
- 4.1 MyCat安装
- 4.2 MySQL主从复制
- 4.3MySQL读写分离
- 第五章 ActiveMQ
- 5.1 Queue
- 5.2 Topic
- 第六章 FastDFS图片服务器
- 第七章