Installing Squid by Compiling the Source Code
- 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
- Decompress the source code package.
1tar -zxvf squid-4.8.tar.gz

- 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}
- Compile and install Squid.
1make -j60 && make install
Parent topic: Installing Squid