RPM package unloading and squid Security

Source: Internet
Author: User

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 ~

 

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.