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

How to install tomcat in Linux system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces you how to install tomcat in the Linux system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

First, you need to install and configure JDK. Here is a brief review of creating a jvm folder under the / opt/ folder under .Linux as root, then use tar-zxvf jdk-8u121-linux-x64.tar.gz-C / opt/jvm/ to extract the files into jvm, and then modify the / etc/profile file as root, adding in the last four lines:

Export JAVA_HOME=/opt/jvm/jdk1.8.0_121

Export JRE_HOME=$ {JAVA_HOME} / jre

Export CLASSPATH=.:$ {JAVA_HOME} / lib:$ {JRE_HOME} / lib

Export PATH=$ {JAVA_HOME} / bin:$PATH

Just save and exit.

After configuring the environment variables, you can use the sudo update-alternatives-- config java command to view the existing environment variables.

Java-version tests whether JDK is installed successfully.

Let's get to the point and install and configure tomcat.

1. Download tomcat:

Core:

Zip (pgp, md5, sha1)

Tar.gz (pgp, md5, sha1)

Go to the tomcat website and click download to download zip or tar.gz.

2. Extract to / home/ folder

3. Enter the folder and add the execution permission. Command:: ~ / apache-tomcat-9.0.0.M21/bin$ sudo chmod + x * .sh

4. ~ / apache-tomcat-9.0.0.M21/bin$. / startup.sh

Start successfully.

View the log:

: ~ / apache-tomcat-9.0.0.M21/logs$ cat catalina.out

Open the browser and enter the URL: localhost:8080 to enter the home page.

On how to install tomcat in the Linux system to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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