In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares with you is the installation and configuration tutorial of apache tomcat in linux. I believe most people don't know how to install it yet. In order to summarize the following, let's move on.
Apache Tomcat, also known as the Tomcat server, is an open source java servlet cotainer& that provides a pure JAVA http webserver environmnet to run java code. This is a very famous and widely used Java-based website running around the world. Apache Tomcat software provides a large number of mission-critical Web applications for many industries and organizations.
Apache Tomcat can be used in a variety of operating systems, such as Linux,Unix,Windows. Apache Tomcat recently announced the end of life for Tomcat version 8.0.x, although this will not affect version 8.5.x.
How does linux install apache tomcat?
In this tutorial, we will discuss the Apache Tomcat installation of v8.5 because it is the latest stable version (v9 is also available, is still in BETA at the time of writing, and there is no stable version currently).
necessary condition
To install Tomcat 8.5, we will need JAVA 7 or later. So first we need to install and set up JAVA on our system. You can install JAVA using the following command
CentOS/RHEL$ sudo yum install java-1.8.0Ubuntu/Debian$ sudo apt-get install openjdk-8*
Apache Tomcat installation
For the Apache Tomcat installation, we will download the archived package from the official website using the following command
$wget http://redrockdigimark.com/apachemirror/tomcat/tomcat-8/v8.5.23/bin/apache-tomcat-8.5.23.tar.gz
Once the file has been downloaded, extract the package in the / opt directory (we can also use some other directories / data, etc.). Run the following command in the terminal to extract the file
$tar-xvzf pache-tomcat-8.5.23.tar.gz-C / opt$ mv / opt/apache-tomcat-8.5.23/ / opt/tomcat
Now Apache Tomcat is ready, but before we do this, we need to assign certificates to access tomcat's' Manager' and 'GUI' pages, with no username and password set by default. To verify the credentials, we will use the'/ opt/tomcat/conf/tomcat-users.xml' file
$vim / opt/tomcat/conf/tomcat-users.xml
And make the following input to the file
Make sure you make these inputs before the label "tomcat-users", that is, before the lines mentioned below
->
The same applies to host-manager context files
$vi / opt/tomcat/webapps/host-manager/META-INF/context.xml
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.