Centos7.5 configuration java environment installation tomcat explanation

Tomcat is a web server software based on java language. This article mainly introduces how to configure java environment on centos7.5 and install tomcat

1. Install the Java environment:

Visit orcal official website to download the JDK rpm package: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

After the download is complete, execute: rpm -ivh jdk-8u161-linux-x64.rpm to install, it will be installed in the /usr/java directory by default

After the installation is complete, modify the /etc/profile file and add java environment variables:

export JAVA_HOME=/usr/java/jdk1.8.0_161/export CLASSPATH=.:JAVAHOME/jre/lib/rt.jar:JAVA_HOME/lib/dt.jar:JAVAHOME/lib/tools.jarexportPATH=PATH:

Execute after adding: source /etc/profile to make the configuration effective

Execute: java -version to verify whether the configuration is successful, the following interface appears, indicating that the configuration is successful

2. Install Tomcat

Visit the official apache website and download the tomcat source package: https://tomcat.apache.org/download-80.cgi

When downloading, be sure to select the source package in Binary Distributions

After downloading, unzip, copy the contents of the unzipped directory to /usr/local/tomcat (/usr/local/tomcat directory needs to be created manually)

tar -xf apache-tomcat-8.5.38.tar.gz
mkdir /usr/local/tomcat8
mv apache-tomcat-8.5.38/* /usr/local/tomcat8/
cd /usr/local/tomcat8/bin
. /startup.sh

So far tomcat has been installed successfully, visit to test:

to sum up

The above is the entire content of this article. I hope that the content of this article has a certain reference value for your study or work. Thank you for your support to ZaLou.Cn. If you want to know more about it, please check the related links below

Recommended Posts

Centos7.5 configuration java environment installation tomcat explanation
CentOS 7 Tomcat service installation and configuration
Tomcat configuration JMX in centos 6.5 environment
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
lamp (centos7) installation lamp environment
Mysql8.0.15 installation configuration (centos7)
Centos mysql installation and configuration
CentOS 7 install JAVA environment (JDK 1.8)
Centos7 installation and configuration prometheus
CentOS6.5 install Java 8 and Tomcat8
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
CentOS6.5 install Java 8 and Tomcat8
CentOS6.5 install Java 8 and Tomcat8
CentOS environment installation of Docker
Environment configuration of JDK, mysql and tomcat under Centos7
Centos7 installation tomcat process introduction
Centos7.4 environment installation lamp-php7.0 tutorial
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos7 installation and configuration of Jenkins
Centos7 hadoop cluster installation and configuration
Java-JDK installation and configuration under CentOS
Centos 7 RAID 5 detailed explanation and configuration
Centos7 build java web server tomcat
Ubuntu 19.1 installation and configuration Chinese environment
CentOS NTP server installation and configuration
Centos7 mysql database installation and configuration
2019-07-09 CentOS7 installation
centos7_1708 installation
CentOS 7 system installation and configuration graphic tutorial
The software environment required for Centos7 installation
Centos-6.5 installation and deployment of LNMP environment
Installation and configuration of redis under centos7
(1) Centos7 installation to build a cluster environment
Centos7 hive stand-alone mode installation and configuration
CentOS7 fully automatic installation CD production detailed explanation
Centos5 installation guide
CentOS7.0 network configuration
CentOS 7.0 network configuration
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Centos6.5 install Tomcat
Python - centos6 installation
CentOS7 basic configuration
Docker installation (CentOS7 installation)
CentOS 7 installation and configuration graphic tutorials under VMware10
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
CentOS7 docker installation
CentOS 7 install Java 1.8
Detailed explanation of building Hadoop environment on CentOS 6.5
CentOS 7 install Java 1.8
Centos MySQL8 configuration
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Build a basic environment for Java development under Centos7
CentOS online installation RabbitMQ3.7
Install Java on Centos 7
Xfs configuration on centos7
CentOS6.7 build LNMP environment
Zabbix 2.2.20 installation details (Centos6.9)