CentOS7 install JDK8, tomcat8

Install using rpm
Convenient

  1. Install wget
$ yum install -y wget
  1. Download the rpm package of JDK8

Note: jdk download address, it is best to go to the official website to copy the latest rpm package address, because it changes frequently.
You can find the rpm package on this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

image.png

The method of operation is to find the location of the rpm package, then right-click, copy the link, and then replace the link below in the command below.

$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otnpub/java/jdk/8u131b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
  1. rpm package installation
rpm -ivh jdk-8u161-linux-x64.rpm

4. Other references#

1. View java path###

http://blog.csdn.net/renfufei/article/details/52621034

2. tomcat installation###

http://blog.csdn.net/wlwlwlwl015/article/details/51210347

3. firewall related commands###

Configure open ports
$ firewall-cmd --zone=public--add-port=8081/tcp --permanent
Reload configuration
$ firewall-cmd --reload

Recommended Posts

CentOS7 install JDK8, tomcat8
Centos6.5 install Tomcat
CentOS install jdk
Linux Centos7 install jdk1.8
Centos 7 install JDK (Linux install jdk)
Centos7.6 method to install Tomcat-8.5.39
CentOS6.5 install Java 8 and Tomcat8
Tencent Cloud Centos install jdk8
Install Java JDK8 under CentOS6
CentOS6.5 install Java 8 and Tomcat8
CentOS6.5 install Java 8 and Tomcat8
1.5 Install Centos7
5.1. CentOS@ install JDK1.8 graphic tutorial
How to install jdk1.8 on centOS7
Install JDK8 in rpm on CentOS7
CentOS8 install jdk8 / java8 tutorial (recommended)
How to install Tomcat 9 on CentOS 8
Centos7 uninstall openJdk, and install JDK1.8
virtualBox install centos, and build tomcat
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS7 install Docker
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
Centos7 configure JDK
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL