In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Apache Web page optimization cache article directory 1, Apache Web page cache 2, Web page cache configuration 1, Apache Web page cache Apache mod_expries module will automatically generate the page header information in the Express tag and Cache-Control tag The client browser determines that the next visit is to obtain the page in the cache of the local machine according to the tag, and does not need to send a request to the server again, thereby reducing the frequency and times of the client's visit, and achieving the purpose of reducing unnecessary traffic and increasing access speed. 2. Web cache configuration 1. Mount the shared file and extract it to the/opt/directory.
Install package optimization, move to http-2.4.2 below
2. Install compilation tools
3. Configure at/opt/httpd-2.4.2
4, Make && make install5, Open Apache main configuration file, Open expires module.
Change domain name and listening address
Open expires module
Add at end of document
Verify apachen even succeeds
6, Open apache service, close firewall, and verify that the module is open
Win10 Verification: Install Fiddler on Win10 system. Open Fiddler4 and enter IP address: 192.168.220.137 in your browser to visit the test website.
If you don't want to cache for so long, you can change 50 to your desired time in the command we added at the end of the main configuration file.
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.