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 and configure Tomcat for Linux

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

Share

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

This article will explain in detail how to install and configure Tomcat for Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

The details are as follows

1. Download the tomcat Linux version

Download address of oracle official website: http://tomcat.apache.org/download-80.cgi

Baidu cloud disk link: http://pan.baidu.com/s/1eSekADs password: 5inw

2. Create a new tomcat directory under the usr directory, and then copy the downloaded tomcat tools into the new tomcat directory.

3. Extract the tomcat file

Because the file name is a little long, we need to rename the extracted folder so that it can be easily referenced later.

4. Configure environment variables

Note: here we presuppose that JDK has been installed and configured. Specific tutorial: JDK installation tutorial under Linux

Enter the following command for the configuration to take effect:

5. Start tomcat

The first method: enter the / usr/tomcat/tomcat8.5/bin directory and enter the following command

If the following interface appears, the startup is successful.

The second method: no matter which directory you are in, enter the following command to start it.

6. Check whether tomcat starts successfully

Enter the above command and start successfully if the following interface appears

If the following interface appears, it does not start.

7. Close tomcat

The first method: enter the / usr/tomcat/tomcat8.5/bin directory and enter the following command

The second method: no matter which directory closes tomcat

9. Verify whether the startup is successful

After we start tomcat, enter http:\\ ip address: 8080 in the browser. If the home page of tomcat appears, it starts successfully

Note: if you can't see the interface, it may be that the firewall is open.

Turn off the firewall command:

10. View the tomcat startup log

-f indicates dynamic display of content. Ctrl+c exits the tail command

11. View port information

Use netstat-tln to view port information. Sometimes we initiate tomcat access and do not respond. At this time, we can use it to see if there is a port 8080.

This is the end of this article on "how to install and configure Tomcat for Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please 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