Today we are here to communicate on the speed of the website. Improving the speed of the website becomes very important for the operation engineers and programmers. The operation and maintenance engineers must first find and influence the various factors affecting the speed of the website in the daily operation and maintenance of the website.
Improving the speed of the website In addition to the optimization of the website itself, there is still a lot of work to be done for LinuxSA, optimizing the system kernel, adjusting the parameters of the web server, optimizing the database, increasing the cache of the website architecture, etc. work.
For the website cache, the current mainstream HTTP accelerators are mainly Varnish, Nginx_proxy, Squid, etc. As the Nginx Web high-speed reverse proxy is used by various medium-sized websites, its integrated cache function (Nginx_proxy) is also increasingly powerful. Currently, it is also widely used in enterprises. Today we will look at how the Nginx_Proxy cache is effectively cleaned up. Use the shell script to automate the cleanup as follows:
#! /bin/sh
#Auto Clean Nginx Cache Shell Scripts
#2013-06-12 Wugk
#Define Path
CACHE_DIR=/data/www/proxy_cache_dir/
FILE="$*"
#To determine whether the input script, If not, then exit Determine if the script has input, no input and then exit
if
[ "$#" -eq "0" ];then
echo "Please Insertclean Nginx cache File, Example: $0 index.html index.js"
sleep 2 && exit
fi
echo "The file : $FILEto be clean nginx Cache , please read ....."
#Wrap processing for the input file, for grep lookup, Wrap the input file for grep to find matching content
for i in `echo $FILE
1. View the data disk before using the partition and formatted data disk, use the “df –h” comm
No matter what size you are, there is always a distribution that is suitable. When it comes to buyi
phenomenon: After installing mysql, mysql find phpmyadmin can not log in, return
Let your website be opened for IIS to enable "content expiration"
The weapon to enter the virtualization Detailed Intel VT technology
Preventing database files from being downloaded by safely configuring IIS
Ten should be away from the workload of the public cloud
SMEs need to count the account of the hosting server
WEB server system disk permissions simple set
Windows IIS FTP server advanced configuration
How to configure NFS server under Linux?
Make your IIS become impeccable
Win10 Build 10134 China Home Edition Upgrade Professional Edition process screenshot exposure
How does the Win10 Edge browser replace other search engines?
How to enable or disable the display of icons as thumbnails in Windows 8 system
Windows 8.1 does not display the "Start" button
How to cancel the WinXP computer password? How to cancel the computer password
Win7 system uses CMD prompt "not internal or external command" how to do
Win10 preview version 10125 Chinese language package installation and garbled solution
How to set up a subdomain of a web site with IIS