Linux CentOS7下部署Tomcat8

技术标签: tomcat

1、安装环境

[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core)

2、安装jdk

https://blog.csdn.net/qq_39680564/article/details/82768938

3、下载tomcat8

wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.53/bin/apache-tomcat-8.0.53.tar.gz

解压、改名

tar -zxvf apache-tomcat-8.0.53.tar.gz
mv apache-tomcat-8.0.53 tomcat8

修改端口为8888

vi /root/tomcat8/conf/server.xml
<Connector port="8888" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

启动

sh /root/tomcat8/bin/startup.sh

关闭防火墙

systemctl stop firewalld.service

浏览器输入ip加端口,查看是否启动成功

http://192.168.199.103:8888/

在这里插入图片描述

关闭服务脚本

#!/bin/bash
#
kill -9 $(ps -ef | grep tomcat8 | grep -v grep | awk '{print $2}')

来源:网络


智能推荐

CentOS Linux 7 安装Tomcat8过程

适合新手看的超详细CentOS Linux 7 安装Tomcat8过程 非常详细的安装Tomcat8的步骤,适合新手学习。废话不多说,直接干! 前提条件 1. 已有可直接连接的CentOS7系统 2. CentOS7系统已安装Java JDK 8 下载Tomcat8 下载地址:https://tomcat.apache.org/download-80.cgi 如下图红框处,下载适合CentOS用的...

Linux7安装tomcat8

打开tomcat官网下载 https://tomcat.apache.org/download-80.cgi [root@jiaxin-ceshi local]# cd /usr/local/src/ [root@jiaxin-ceshi src]# wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.53/bin/apache-to...

Linux下安装Tomcat8

继续边操作边记录Linux使用第三遍,安装Tomcat服务器。 一,环境配置 操作系统: CentOS / 7.5 x86_64 (64bit) Tomcat: jdk版本:1.8 二、操作工具 xshell 6         一个强大的安全终端模拟软件,它支持SSH1, SSH2, 以及Microsoft Windows 平...

linux下tomcat8安装详解

一,安装tomcat前首先要安装对应的jdk并配置Java环境。 二,安装步骤: 1,下载安装包 官网下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 我这边是下载的jdk-8u161-linux-x64.tar.gz 2,解压安装包 tar -zxvf jdk-8u16...

Linux环境下安装tomcat8

一、安装tomcat 官网链接:https://tomcat.apache.org/ 1.首先去官网下载tomcat,这边我下载的时tomcat8.5   2.下载完成后,上次到服务器上,这边我是上传到/soft/tomcat,然后开始解压 解压成功 3.启动tomcat 进入bin目录下,执行启动脚本 sh startup.sh 启动成功,可以正常访问     &n...

猜你喜欢

linux下tomcat8安装详解

linux下tomcat8安装详解 一、安装jdk1.8并配置环境变量 在usr目录下再创建一个java文件夹准备放置我们下载好的jdk安装包   将下载好的安装包放到我们创建好的 /usr/java 目录下 1)、进入java目录 2)、通过rz -y命令导入jdk安装包   执行tar -zxvf jdk-8u281-linux-x64.tar.gz命令...

centos7下tomcat8部署教程

准备一台安装好的centos 7 x86_64位系统,jdk版本和tomcat版本不一致,请参考修改即可。 1.下载jdk1.8 可以在本地电脑下载,官网如下,或需要注册Oracle账号登录后才可下载 https://www.oracle.com/technetwork/java/javase/downloads/index.html 2.安装上传工具 通过ssh登录到centos   ...

linux(centos6.8 64位)下安装tomcat8

前提配套(需安装安装JDK),详细教程下面地址 http://blog.csdn.net/a_xi_baa/article/details/73484037 工具准备,下载地址 http://tomcat.apache.org/download-80.cgi 下载完后用xftp复制到服务器里面 解压操作:# tar -zxvf apache-tomcat-8.0.44.tar.gz -C...

centos7下安装tomcat8

    前提           tomcat8下载              将apache-tomcat-8.5.27.tar.gz拷贝到/home目录下    解压文件    创建路径     ...

遇到BITMAP CONVERSION TO ROWIDS 后解决与思考

今天遇到一个案例,有点价值写下来,以后多看看 SQL: select t.order_id,   t.spec_name,   t.staff_code,  t.staff_code  as xxbStaffCode,     t.channel_id  as xxbChannelId,   &nb...

问答精选

JavaScript Text Validation Not Working with Regex

I'm trying to validate the Firstname and the Surname fields in an HTML document via JavaScript. The validation has to prompt whether the user inserted a valid Name/Surname meaning that no numbers or w...

npm modules not installing properly

I have a nodejs project which i created months ago and abandon it. At that time it was working fine. Now i have need that project but nodejs modules are not installing properly(as i expect). saying so...

Get widget name of label in frame using mouse

Win7 SP1, Python 2.7,Tkinter. I make a frame, and I place an array of labels within. The array is 10w x 24h. I want to click on one of these labels and return the name of the label so I may alter it's...

How to specify the Input shape for GRU model on keras functional api?

I have a 2d matrix where the features are columns and the samples are rows (178136 features and 416 samples). I transposed this matrix and then converted this matrix to 3d by creating a NumPy array of...

webbrowser add a margin-left when printing html file

I'm using a webbrowser control in c# to print an html file. When I open the html file with my current navigator (Firefox or chrome), my page is "great", and I have to print it exactlly how I...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答