Previously, due to work requirements, the agent server on the Linux server needs to install squid. The following is a description.
The most simple way to install squid is to upgrade the latest version of RPM package under the http://www.squid-cache.org, now is version 2.5, just install. In some versions of Linux, squid has been installed during the security period. If you think the version is poor or want to reinstall the security, You have to unload it.
Run the following command to check whether there is any security protection:
Rpm-Qa | grep squid
If it is similar
Squid-cerberian-2.2.STABLE10-1
It indicates that the squid of x. x has been installed. You have to unload it first.
Rpm-e squid
It should be able to be detached. If
Error: Package squid is not installed
Or an error indicates that the squid package had a problem when it was first installed. Linux is troublesome!
Available
Rpm-QL squid
And delete all these items. If the system does not tell you where squid is installed after this command, you must use the find command to find out where squid is:
Find/-name squid *
Then, delete these directories and files. The files/home/squid and var/mail/squid can be stored at any time.
Then, clear the squid information in the RPM data volume:
Rpm-e -- justdb squid
In the end, do not forget to divide squid with squid and squid.
Userdel squid
Groupdel squid
Now we have installed new hosts.
Rpm-uvh squid-cerberian-2.5.STABLE10-1-rh9.i386.rpm
It should be fine. All benefits should be made.
Modify the/etc/squid. conf file and add the following sentence to it:
Http_port 3128
Visible_hostname myproxy
Set
ACL connect method connect
Change this sentence
ACL connect method connect get post
Then
Http_access deny all
Change this sentence
Http_access allow all
Save and exit.
Dynamic squid:
Service squid start
Okay. Zookeeper can use the zookeeper to perform failover ~