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