版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bcqd1211/article/details/53082811
1.首先在官网下载对应的tomcat版本
2.上传到服务器
3.解压tomcat
opt# unzip apache-tomcat-7.0.72.zip
4.修改tomcat服务器启动端口
/opt/apache-tomcat-7.0.72/conf# 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目录下
执行 chmod +x *.sh
/opt/apache-tomcat-7.0.72/bin# chmod +x *.sh
然后用sh startup.sh启动成功