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启动成功

本文介绍如何在服务器上部署Tomcat,包括下载、上传、解压Tomcat文件,并修改服务器启动端口。此外还介绍了如何解决启动过程中遇到的问题,如通过调整权限确保能够正确启动。

被折叠的 条评论
为什么被折叠?



