In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Brief introduction to Tomcat
Tomcat is an open source implementation of Web Container, a lightweight web server, and the first choice for developing and debugging JSP programs.
1.1. Tomcat architecture component Server: an instance of Tomcat. Usually, a JVM can only contain one Tomcat instance; it is a top-level component in Tomcat. A Server contains one or more ServiceService: Service calls Servlet Engine to handle client requests Connectors: it is responsible for connecting client requests to Web applications in the Servlet container, which usually refers to the location where the client sends the request and the port assigned by the server. The default port is usually 8080 of the HTTP protocol. An engine can configure multiple connectors, but these connectors must use different ports. The default connector is HTTP/1.1-based CoyoteEngine: Engine is the Servlet engine component that processes the request, which examines the HTTP header information of the request to identify which host or context the request should be sent to, and returns the corresponding client-side Host: Host component that is similar to the virtual host in Apache, but only supports FQDN-based "virtual host" in Tomcat. And an engine should contain at least one host Context: the Context component is the innermost component, which represents the Web application itself; the most important thing to configure a Context is to specify the root directory of the Web application, so that the Servlet container can send user requests to the correct location. 2. Deploy Tomcat 92.1. Install Tomcat [root@localhost ~] # yum-y install java-1.8.0-openjdk.x86_64 [root@localhost ~] # wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.24/bin/apache-tomcat-9.0.24.tar.gz[root@localhost ~] # tar xvf apache-tomcat-9.0.24.tar.gz-C / usr/local/ [root@localhost ~] # ln-s / usr/ Local/apache-tomcat-9.0.24/ / usr/local/tomcat [root@localhost ~] # cat > / etc/profile.d/java.sh
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.