1.首先在官网下载对应的tomcat版本
2.上传到服务器
3.解压tomcat
unzip apache-tomcat-7.0.72.zip
或者
tar -xvf jdk-8u144-linux-x64.tar
4.修改tomcat服务器启动端口
vim server.xml
5.启动tomcat,如果碰到问题
root@iZbp166hn1pkoo0pubuaymZ:/opt/apache-tomcat-7.0.72/bin# sh startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
依旧在tomcat 的bin目录下,给sh文件增加权限
执行 chmod +x *.sh
然后用sh startup.sh启动成功