linux服务器上安装tomcat 8.5.6版本tomcat

Posted 健康平安的活着

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux服务器上安装tomcat 8.5.6版本tomcat相关的知识,希望对你有一定的参考价值。

一 操作步骤

1.1  上传程序包

1.2 解压

[root@localhost servers]# unzip  apache-tomcat-8.5.6.zip 
Archive:  apache-tomcat-8.5.6.zip
   creating: apache-tomcat-8.5.6/
   creating: apache-tomcat-8.5.6/bin/
   creating: apache-tomcat-8.5.6/conf/

1.3 赋予执行权限

root@localhost apache-tomcat-8.5.6]# chmod 777  bin/*
[root@localhost apache-tomcat-8.5.6]# cd bin
[root@localhost bin]# ls
bootstrap.jar                 configtest.bat    setclasspath.sh  tomcat-native.tar.gz
catalina.bat                  configtest.sh     shutdown.bat     tool-wrapper.bat
catalina.sh                   daemon.sh         shutdown.sh      tool-wrapper.sh
catalina-tasks.xml            digest.bat        startup.bat      version.bat
commons-daemon.jar            digest.sh         startup.sh       version.sh
commons-daemon-native.tar.gz  setclasspath.bat  tomcat-juli.jar
 

1.4 启动访问

[root@localhost apache-tomcat-8.5.6]# ./bin/startup.sh ;tail -f logs/catalina.out
Using CATALINA_BASE:   /root/export/servers/apache-tomcat-8.5.6
Using CATALINA_HOME:   /root/export/servers/apache-tomcat-8.5.6
Using CATALINA_TMPDIR: /root/export/servers/apache-tomcat-8.5.6/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /root/export/servers/apache-tomcat-8.5.6/bin/bootstrap.jar:/root/export/servers/apache-tomcat-8.5.6/bin/tomcat-juli.jar
Tomcat started.

或者:

[root@localhost apache-tomcat-8.5.6]# ./bin/startup.sh & tail -f logs/catalina.out
[1] 4261
03-Oct-2022 16:00:08.646 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-8009]
03-Oct-2022 16:00:08.673 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1664 ms
03-Oct-2022 16:06:08.175 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
03-Oct-2022 16:06:08.176 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
03-Oct-2022 16:06:08.233 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
03-Oct-2022 16:06:08.284 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
03-Oct-2022 16:06:08.323 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
03-Oct-2022 16:06:08.324 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
03-Oct-2022 16:06:08.325 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
03-Oct-2022 16:06:08.326 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
Using CATALINA_BASE:   /root/export/servers/apache-tomcat-8.5.6
Using CATALINA_HOME:   /root/export/servers/apache-tomcat-8.5.6
Using CATALINA_TMPDIR: /root/export/servers/apache-tomcat-8.5.6/temp
 

1.5 验证 

以上是关于linux服务器上安装tomcat 8.5.6版本tomcat的主要内容,如果未能解决你的问题,请参考以下文章

JDK + Tomcat的安装

在 Spring Boot 上更改嵌入式 tomcat 版本

Linux上安装Tomcat

Linux上安装tomcat

CentOs上安装Nginx/Tomcat7/Mysql运行环境

Linux(Debian) 上安装tomcat并注册服务开机自启动