Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Squid by Compiling the Source Code

  1. Obtain the Squid source code and upload it to the /home directory on the server.

    If the server can access the Internet, you can run the wget command on the server to download the source code.

    1
    2
    cd /home
    wget https://www.squid-cache.org/Versions/v4/squid-4.8.tar.gz --no-check-certificate
    
  2. Decompress the source code package.
    1
    tar -zxvf squid-4.8.tar.gz
    

  3. Configure Squid.
    1
    2
    cd /home/squid-4.8/
    ./configure
    

    Squid is installed in /usr/local/squid by default. If you want to install Squid in another directory, use the --prefix option. Example:

    ./configure --prefix=/${PATH_TO_SQUID}

  4. Compile and install Squid.
    1
    make -j60 && make install