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

What are the specific steps for Linux to install Tomcat

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly analyzes the specific steps of Linux installation of Tomcat what is the relevant knowledge points, the content is detailed and easy to understand, the operation details are reasonable, has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "what are the specific steps for Linux to install Tomcat".

Tomcat is a small and lightweight application server, which is widely used in small and medium-sized systems and not many concurrent access users. It is the first choice for developing and debugging JSP programs.

1. Environment preparation jdk version: 1.8

Tool: xShell5 xftp5

Description: this article is through the Xshell5 tool remote connection Linux operation, the principle is the same.

Step 1: download the installation package

Download address on the official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Here is the downloaded jdk-8u161-linux-x64.tar.gz.

If Linux itself is connected to the Internet, we can download the JDK installation package directly through the wget command.

2. Extract the installation package

Upload the JDK installation package we downloaded to the server and decompress it.

I put it under the / usr/local/java file, so I want to create a java folder and move the unzipped files to java (because I created it before or created it again or duplicate it)

Mkdir / usr/local/java mv jdk1.8.0_161 / usr/local/java/

3. Modify the configuration file (configure environment variables)

Vim / etc/profile uses the vim editor to edit the profile file, adding the following at the end of the file:

: wq enter and save exit.

After saving, use source / etc/profile command to make the modified configuration effective.

4. Test whether the JDK installation is successful

Installation version information appears in java-version

Let's start installing tomcat.

Download and install tomcat (http://tomcat.apache.org/). Here is the downloaded apache-tomcat-8.0.50.tar.gz

Decompression

Tar-zxvf apache-tomcat-8.0.50.tar.gz

I put it under usr/local/tomcat, so I want to create a tomcat folder and move the unzipped files to tomcat (because I created it before or created it again or duplicate it)

Mkdir / usr/local/tomcat mv apache-tomcat-8.0.50 / usr/local/tomcat/

Go to the tomcat installation bin directory and start

Cd usr/local/tomcat/apache-tomcat-8.0.50/bin/. / startup.sh

After successful startup, the browser enters http://localhost:8080/ to view information (if it is not local, enter the corresponding IP, for example, I enter server IP47.97.189.117:8080)

At this point, the tomcat installation is complete, and you can add projects to restart the tomcat service later.

This is the end of the introduction on "what are the specific steps for Linux to install Tomcat". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

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

Development

Wechat

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

12
Report