美文网首页
Linux服务器 安装配置tomcat

Linux服务器 安装配置tomcat

作者: chuan_bai | 来源:发表于2017-08-26 20:29 被阅读13次

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

相关文章

网友评论

      本文标题:Linux服务器 安装配置tomcat

      本文链接:https://www.haomeiwen.com/subject/nzsvdxtx.html