In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about the difference between containers and CVMs. Many people may not know much about it. In order to make you understand better, the editor summarized the following contents. I hope you can learn something from this article.
We know that a CVM is a virtual device with auto-scalable computing capabilities, and the CVM platform includes container technology, and a server can have multiple containers.
Web container is a kind of service program, there is a program that provides the corresponding service on a single port of the server, and this program is to handle requests sent from the client, such as Tomcat container in JAVA, IIS or PWS in ASP.
Container technology is a way of sharing server resources. Container technology can provide great flexibility for system administrators in the process of building container technology operating system instances on demand. It is generally understood that containers are things, and technical containers are environments in which applications can be deployed and run on.
If you buy a CVM, users have a high degree of freedom to install the environment as much as they want. It is more convenient and convenient to buy containers directly.
What does the container provide?
Communication support: using the methods provided by the container, you can easily get servle to talk to the Web server.
Lifecycle management: containers control the life and death of servlet. It is responsible for loading classes, instances, and initializing servlet, calling servlet methods, and enabling servlet instances to be garbage collected.
Multithreading support: the container automatically creates a new servlet thread for each Java request it receives. In response to the client's request, the thread ends if the servlet has finished running the corresponding HTTP service method.
Declarative security: with containers, you can configure (and modify) security using XML deployment descriptions without having to hard-code it into servlet (or other) class code.
JSP support: responsible for translating JSP code into real java.
Web applications need to be deployed into a web container to run, both of which must conform to the javaEE specification.
After reading the above, do you have any further understanding of the difference between a container and a CVM? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.