In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces what is the access method of cloud computing object storage S3, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
Object storage access
S3 supports three resource access methods:
Path Style URL
Virtual-hosted Style URL
Custom domain name
In essence, object storage uses bucket,key to uniquely identify an object, so as long as you tell the object storage server these two things, you can theoretically locate this data. The above three ways, all in order to get (bucket,object_key).
Path Style URL
In Path Style URL, the name bucket follows domain and becomes part of URL path.
Http://s3endpoint/BUCKET
For example, if you have a photo.jpg stored in a bucket whose region is us-west-2,bucket and images. You can access it in the following ways:
Http://s3-us-west-2.amazonaws.com/images/photo.jpg
Key points:
All users request the same Host (narrator: in the mixed Internet environment, there is a hole in this way, think about it? )
Bucket and key are in URL: / {bucket} / {key}
Virtual-Hosted Style URL
In Virtual-Hosted Style URL, the name of bucket is subdomain:
Http://BUCKET.s3endpoint
For example, if you have a photo.jpg stored in a bucket whose region is us-west-2,bucket and images. You can access it in the following ways:
Http://images.s3-us-west-2.amazonaws.com/photo.jpg
It is recommended to use Virtual-Hosted Style access method. Because this can improve access performance, one less hop.
Key points:
Bucket is taken from part of host
Resolve the pan-domain name to the server of the public cloud vendor
Custom domain name
This is the most difficult way for beginners to understand. Let's start with a specific example. What do you do if you want to use a custom domain name to download access objects?
First of all, users need to take care of a working domain name and cname the domain name to the S3 endpoint you need to access.
Secondly, the user configures binding the domain name to a bucket; on the management interface of the object storage provided by the manufacturer (narrator: this is just storing an map mapping: domain name to bucket mapping)
Once you are ready for the first two steps, you can use a custom domain name to access resources:
/ / Note: you don't need to specify bucket here, you just need to specify the object key http://${ custom domain name}. Com/photo.jpg
Explain the role of these two steps:
The first step: the user is responsible for sending the S3 request to the S3 server, and the user is responsible for the connection of this path.
Step 2: the object storage server will create a map, which is responsible for resolving the mapping of the domain name to bucket (narrator: the object storage server says, as long as you request to send it, I can find the corresponding bucket of this domain name)
On the cloud computing object storage S3 access mode is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can 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.
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.