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 > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "Introduction to FastDFS nginx Extension Module". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
FastDFS stores files in groups, which facilitates downloading files over HTTP. Because of the need to address file synchronization latency issues, FastDFS extensions are required on nginx. After using the small file merge storage feature introduced in V3, you must use the nginx extension module to read files.
FastDFS extension module can be used to solve the problem of file asynchronous replication delay resulting in file access problems. If the requested file does not exist on the current storage, the ID or IP address of the source storage is solved by the file ID, and the source storage is directly requested. The request source storage server has two modes: proxy and HTTP redirect, which are set in the configuration file mod_fastdfs.conf. The configuration item is response_mode. It is recommended to configure proxy mode.
FastDFS nginx extension modules can exist independently of FastDFS server. If you do not intend to rely on FastDFS, set load_fdfs_parameters_from_tracker to false. Although it is theoretically possible not to rely on FastDFS, it is recommended that load_fdfs_parameters_from_tracker be set to true.
FastDFS nginx extension module features are as follows:
1) Each storage server needs to deploy nginx to provide HTTP services.
Note: Tracker server logically does not need to deploy nginx, of course, you can reuse tracker server deployment nginx as a proxy.
Only HTTP HEAD and GET are supported.
3) Support token anti-theft chain (default is closed), add the following two parameters after the URL:
ts: time token was generated (unix timestamp)
token: 32-bit token string (md5 signature)
Note: FastDFS official C, PHP and Java SDK all provide functions/methods to generate tokens, which can be called directly. The parameters related to anti-theft chain are set in http.conf. Please refer to this configuration file example under FastDFS source code directory.
4) Support specifying the default file name of saving (the file name displayed when the user saves the document), and the URL parameter name is filename.
5) Support HTTP Range breakpoint continuation.
6) Support for flv.
"FastDFS nginx extension module introduction" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.