Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Explanation of installing tomcat in Centos7.5 configuration java Environment

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

1. Install the Java environment:

Visit the 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 completed, execute: rpm-ivh jdk-8u161-linux-x64.rpm to install. By default, it will be installed in / usr/java directory.

After the installation is complete, modify the / etc/profile file to add the java environment variable:

Export JAVA_HOME=/usr/java/jdk1.8.0_161/export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$PATH:$JAVA_HOME/bin

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

Execution: java-version verifies whether the configuration is successful. The following interface indicates that the configuration is successful.

two。 Install Tomcat

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

Be sure to choose the source package in Binary Distributions when downloading

After downloading, extract and copy the contents of the extracted directory to / usr/local/tomcat (/ usr/local/tomcat directory needs to be created manually)

Tar-xf apache-tomcat-8.5.38.tar.gzmkdir / usr/local/tomcat8mv apache-tomcat-8.5.38/* / usr/local/tomcat8/cd / usr/local/tomcat8/bin./startup.sh

Now that tomcat has been successfully installed, visit and test:

Summary

The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report