Several parameters that squid needs to tune

Source: Internet
Author: User

Usually in order to simplify the configuration, we will close the Selinux,firewall;

Because squid usually in the form of files to cache the content of the site we need, so when the proxy, if the number of Internet access, we need to adjust the Linux default number of open files and processing threads;

This parameter is configured in the limits.conf of etc/security;

*-Nofile 196608
*-Nproc 196608
Detailed configuration instructions are also available in this configuration file;

We can also set the cache in one of our designated directories;

Mkdir/squid/cache

And the permission is set to writable;

Chmod-r 777 Squid

This command puts the folder permissions of squid and its subdirectories to the maximum;

Finally in the squid.conf remember to add the cache file location;

For example:

Cache_dir aufs/squid/sq01 8192 64 128

One of the aufs is to give squid a suitable file format, can improve the performance of squid to a certain extent;

To view squid status:

Systemctl Status Squid

Several parameters that squid needs to tune

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.