In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.