0.关防火墙,互ping
windows
CentOS7
firewall-cmd --state #查看默认防火墙状态
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
ps -ef | grep tomcat #查看正在运行的进程
service network restart #重启效
1.上传 /home/tomcat/
2.解压 tar -zxvf
3.配置环境变量 vi /etc/profile
export CATALINA_HOME=/home/java/tomcat/apache-tomcat-8.5.27
export PATH=$PATH:$CATALINA_HOME/bin
4.生效 source /etc/profile
5.基本操作
startup.sh
云安装
yum list tomcat* #查看可用版本
yum -y install tomcat* #安装
tomcat的安装目录在/usr/share/tomcat