[Linux]CentOS7安装Tomcat 8 web服务器

Posted HzdWwZz"LJF

tags:

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

1.下载Tomcat并发送到Linux端:

链接:https://tomcat.apache.org/download-80.cgi
下载tar.gz包:

技术图片

2.创建目录,用来存放tomcat包:

[[email protected] 08:47:06 /]# mkdir /usr/local/src/tomcat/

接收tomcat包:

[[email protected] 08:48:03 /usr/local/src/tomcat]# rz -y
rz waiting to receive.
Starting zmodem transfer.  Press Ctrl+C to cancel.
Transferring apache-tomcat-8.5.38.tar.gz...
  100%    9445 KB    9445 KB/sec    00:00:01       0 Errors  

[[email protected] 08:48:19 /usr/local/src/tomcat]# ls
apache-tomcat-8.5.38.tar.gz
[[email protected] 08:48:26 /usr/local/src/tomcat]# 

解压:

[[email protected] 08:48:26 /usr/local/src/tomcat]# tar -xf apache-tomcat-8.5.38.tar.gz

3.进入目录运行启动脚本:

[[email protected] 08:50:56 /usr/local/src/tomcat]# cd apache-tomcat-8.5.38/bin/
[[email protected] 08:51:16 /usr/local/src/tomcat/apache-tomcat-8.5.38/bin]# ./startup.sh 
Using CATALINA_BASE:   /usr/local/src/tomcat/apache-tomcat-8.5.38
Using CATALINA_HOME:   /usr/local/src/tomcat/apache-tomcat-8.5.38
Using CATALINA_TMPDIR: /usr/local/src/tomcat/apache-tomcat-8.5.38/temp
Using JRE_HOME:        /usr/local/src/java/jdk1.8.0_201
Using CLASSPATH:       /usr/local/src/tomcat/apache-tomcat-8.5.38/bin/bootstrap.jar:/usr/local/src/tomcat/apache-tomcat-8.5.38/bin/tomcat-juli.jar
Tomcat started.
[[email protected] 08:51:43 /usr/local/src/tomcat/apache-tomcat-8.5.38/bin]# 

4.在windows端测试:

输入linux端的ip+:8080

技术图片

出现这个界面则说明tomcat已经安装成功了。

以上是关于[Linux]CentOS7安装Tomcat 8 web服务器的主要内容,如果未能解决你的问题,请参考以下文章

centos7.5 安装tomcat 8.5.53

Linux基础环境_安装配置教程(CentOS7.2 64JDK1.8Tomcat8)

Linux(CentOS7)下配置多个tomcat

CentOs7.4安装jdk1.8-tomcat8-activemq

linux操作Centos7安装Tomcat

centos7.6 安装Tomcat-8.5.39