response, thus avoiding all disk I/O. Then carefully observe the cache loss response time. If it falls down, you guess it is correct.
Once you confirm that the disk throughput is the performance bottleneck of squid, you can do a lot to improve it. Some of these methods require recompilation of squid, while others are relatively simple. You only need to adjust the UNIX
logs frequently, this may be feasible. However, for security reasons, we recommend that you retain 10% of the space. These extra spaces are used to store squid swap. State files and temporary files.
Note that the cache_swap_low command also affects the space used by squid. I will discuss its upper and lower limits in Chapter 7.2.
The bottom line is that you should estimate the cache_dir size conservatively
Squid optimization full manual (1)
This article focuses on optimizing squid performance without changing hardware conditions (12:31:57)
Squid is an excellent open source proxy server software that can run on multiple system platforms. However, it has obvious disadvantages compared with other commercial products, that is, its
other users apply for the same pageSquid immediately transmits the saved backup to the user, making the user feel that the speed is quite fast. Currently, squid can proxy HTTP, FTP,Gopher, SSL, and WAIS protocols. Currently, they cannot proxy protocols such as pop and nntp. However, someone has begun modifying squid.For a long time, squid will be able to proxy these protocols.
, GOPHER, SSL and WAIS protocol, temporarily can not proxy POP3, NNTP and other protocols. Squid can work in many operating systems, such as AIX, Digital, Unix, FreeBSD, HP-UX, Irix, Linux, NetBSD, Nextstep, SCO, Solaris, OS/2, and so on.
Installing and configuring Squid Server
Usually, there are two ways to install squid
Linux Proxy Server-squid positive proxy experiment, squid positive
1. Introduction to the proxy server squid
Squid cache (Squid for short) is a popular free software (GNU General Public License) proxy server and Web cache Server. Squid
Chapter 4 test and run SQUID
To test whether SQUID is normal, you must first resolve the domain name www.naizhao.com to the IP address 126.96.36.199. As in the previous chapter, if you are a Netcom user and do not need to perform any operations, DNSPod will return the IP address 188.8.131.52 to you. If you are a telecom user or the resolved IP address is not 184.108.40.206, you must modify the hosts table of
: respawn:/usr/local/squid/sbin/squid? Ns
Here we use the respawn option. If the process does not have init, the squid will be restarted. If respawn is used, make sure to use the-N option.
After editing the inittab file, run the following command to make init re-read its configuration file and start squid:
# Init q
a user wants to download a home page, it sends an application to Squid to download it for it, and then Squid connects to the requested website and requests the home page, the home page is sent to the user and a backup is retained at the same time. When other users apply for the same page, Squid immediately transmits the saved backup to the user, making the user
download a home page, it sends an application to Squid to download it for it, and then Squid connects to the requested website and requests the home page, the home page is sent to the user and a backup is retained at the same time. When other users apply for the same page, Squid immediately transmits the saved backup to the user, making the user feel that the sp
the saved backup to the user, making the user feel that the speed is quite fast. Currently, squid can proxy HTTP, FTP,Gopher, SSL, and WAIS protocols. Currently, they cannot proxy protocols such as pop and nntp. However, someone has begun modifying squid.For a long time, squid will be able to proxy these protocols.
Can Squid cache any data? No. Like cached cre
use service httpd restart.
Finally, we access the test and check that the cache hits.
How does squid restart to clear the cache?
Rd C: \ squid \ cache/s/qMd C: \ squid \ cacheLow hit rate of squid
Squid is an excellent agent server software used in Linux.Squid is not onl
settings when you log on to the system using ssh. Each logon process can be set separately. If the setting is not written to the Environment configuration file (. profile,. bash_rc), the environment settings will be lost after the logon process is disabled.For example, you use pietty to open two windows, use the same account password, log on to the same server at the same time, and then use the export command in one of the login processes, it will only take effect in this login process and will
, and the environment settings are lost after the logon process is turned off without writing the settings to the Environment configuration file (. profile,.bash_rc).For example, if you use Pietty to open two windows, use the same account password, log on to the same server, and then use the Export command in one of the login processes, it will only take effect in this login process and not on another login process.
After we understand, let's talk about the Ulimit order. Ulimit is used to set s
of which are Web proxies. A proxy server can process complex communication transactions between the client and the server. In addition, it provides anonymous information on the Network (LCTT: indicates that the IP address and browser information of the browser are hidden), which means that your identity and browsing traces are safe. The proxy can configure which websites customers can see and which websites are blocked.2. What is Squid?
What is squid?Squid is a relatively well-known agent software , it can not only run on Linux can also run on Windows and UNIX, its technology is very mature. The current users of squid are also very extensive. Squid and other agent software under Linux, such as Apache, Socks
back to the top of the page
Realization principle of SQUID reverse proxy
At present, there are many reverse agent software, more famous have Nginx and Squid. Nginx is a high-performance HTTP and reverse proxy server and a IMAP/POP3/SMTP proxy server developed by Ig
. government, which aims to solve the problem of network bandwidth shortage, support HTTP,HTTPS,FTP and other protocols, is now used on Unix systems, the most versatile and the most complete set of software. The following will focus on the implementation of SQUID reverse proxy and improve the performance of the Web site application.
Squid The reverse proxy server
authentication of the proxy server software Squid in Linux, FreeBSD and Unix applications, as well as the specific methods for using the Squid auxiliary software to implement proxy Internet access and billing.
1. obtain Squid and related software
---- Get the squidsoftware from http://
Squid is a very popular server software under a UNIX-like system, and its most important function is to establish a cache between the client and the service. So squid can be used as a reverse proxy, deploy multilevel caches or build CDNs, whatever the name is, essentially the same. Currently there is also a ported version of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.