Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Precipitated years (cdn)

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Mobile Phone >

Share

Shulou(Shulou.com)05/31 Report--

Hello everyone, Lin Fei to answer the above questions, precipitate time, cdn many people do not know, now let's take a look!

Today, when the number of network users is very large, network stutter or delay is very normal. In order to solve different network conditions, we often set up different servers to access the network. The Cdn server is one of them. Its full name in English is Content Delivery Network, and its translation into Chinese is the content distribution network. Using CDN server to access the network will rebuild a new network architecture in the Internet and make the user's network have special network transmission function. This can solve the problem of blocked network access to a great extent and improve the response time and speed of the website.

CDN server is a new type of network server architecture. In order to optimize the original network architecture services, the CDN server was born, which is its own narrow interpretation. If interpreted in a broad sense, then CDN server is based on the quality and order of the relevant network architecture services. In fact, the CDN server is a complete network system, which includes many specific functional modules. In CDN, they are four main functional modules: distributed storage, load balancing, network request redirection and content management. Content management and network traffic management are the two most important functions in CDN server.

In the current network services, it is very obvious that there are stutters and access delays, especially when the network accesses the servers of a large number of visitors, stutters and server crashes are relatively normal. The emergence of CDN server can not only alleviate the previous server related congestion and network channel congestion, but also alleviate the network response delay to some extent. CDN servers are very different from the original content delivery methods of many servers. In the traditional server publishing, this main function is completed by the ICP server, so the network function in the CDN server is only a transparent function of data transmission. Of course, this transparency is only shown in the packet, and can not distinguish between server quality and related information in the traditional way.

When the network content is located in multiple server access centers, it will generally cause network channel blocking and network access delay. Therefore, the CDN server pushes the content to all edge layers of the access network, allowing users to access network service information nearby. In this way, the central location of the server can be vacated for other functions. As a result, the blocking phenomenon of network channel is greatly reduced. This is how content distribution networks, or CDN servers, work.

Cdn server building

1. Preparation work before setting up CDN server (this article uses LuManager to build CDN server)

1. Find a server with fast domestic access to install the LuManager control panel. For example, if you are in Zhengzhou, you can choose Zhengzhou server.

The 2.LuManager control panel supports Nginx, Tengine, Apache, and comes with CDN cache acceleration, which is easy to set up and powerful.

3. After tribal testing, LuManager CDN automatically generates a mirror cache for the accelerated website, and the user visits are no longer the source site, but the CDN acceleration node, which has the best acceleration effect on static files.

II. LuManager CDN cache acceleration creation tutorial

1. Log in to the LuManager background control panel, click "add website", and enter the domain name you want to bind.

two。 Then click the "optional fill in" option, select "CDN site acceleration" in creating a theme site, and fill in your source site domain name and IP address. (click to enlarge)

3. Select "Open CDN normal cache" at the bottom. The default value for the CDN cache file type is:

Html | htm | shtml | shtm | gif | jpg | JPEG | png | BMP | swf | js | CSS | MP3 | MAV | doc | dot | xls | pdf | txt | zip | rar | gz | tgz | bz2 | tgz | RM | rmvb | ico

4. Multiple are separated by half-angle | separated, such as jpg | png | gif, etc. Do not cache the contents of dynamic web pages such as php | asp | jsp | cgi | aspx. Use the default value when left blank.

5. File types can be matched regularly. If you want to match discuz attachments, you can use php.mod=attachment (due to php? Attachment to In mod=? In regularization, it is a special symbol that needs to be used.) (click to enlarge)

6. After the setup is complete, you can go to website Administration to check that the CDN acceleration has been created successfully.

Third, set up DNS domain name resolution and enable CDN cache to accelerate access

1. Go to the DNS management office of the domain name and connect the user settings of different networks to different CDN acceleration nodes, such as foreign and domestic users, China Telecom users, search engines.

two。 For friends who are using American hosts, allowing users to directly access the domestic CDN cache acceleration server will greatly improve the loading speed of web pages. This is my Godaddy mainframe set up in the CDN computer room in China.

four. LuManager CDN accelerates access effect

1. From the ping value, after setting up LuManager CDN, site users visit the CDN node rather than the origin server.

two。 Using the webmaster speed measurement tool, the loading speed of domestic CDN accelerated web pages is twice as fast as that of useless web pages. (click to enlarge)

3. Looking at the website file management of LuManager CDN, it is found that LuManager CDN has automatically generated an image for the origin server in the server, and static files such as CSS, JS, picture, Html and so on have been successfully synthesized. (click

Fifth, LuManager CDN advanced cache mode and delete cache content

1. If you want to enable LuManager CDN advanced caching mode, select this option when creating a CDN acceleration website.

2, the advanced cache can freely choose the index file of the website (the default home page), the cache file is "misplaced" and encrypted on the node server, and the frequently accessed files will use memory cache, which is very fast. It is recommended that users with high requirements for file confidentiality and access speed, and ample memory choose this method.

3. If you want to delete the LuManager CDN cache content, you can set a password first or not.

4. For example, if the tribe wants to delete the cache file, visit the URL directly: http://10.204.164.9:8888/index.php?m=Public&a=cache_delete&id=2&hash= hash value & file= file name

5. The algorithm of hash value: the MD5 value of password, that is, md5 (password). If the password is left blank, it can be deleted without verifying the password (omitting the hash parameter)

6. File name: the file name is relative to the root directory of the site, starting with /. If you want to delete the mydir/file file under the root directory of the site, use / mydir/file (we recommend that the file name be encoded with urlencode). In the case of File + memory mode, the file name is / lum_high_cache.

Cdn server price

The price of the cdn server on the market is usually about 70 yuan per month.

In fact, CDN server is only a common type in our daily life. In addition to CDN server, there are many other kinds of servers in the network. Their mutual cooperation and content calls greatly facilitate our life.

At the end of this article, I hope it will be helpful to you.

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.

Share To

Mobile Phone

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report