++++++++++++++++++
how to create a Softlink
#ln -s /usr/local/squid/etc/squid.conf
/etc/squid/squid.conf
+++++++++++++++++++++++++++++++
How to Complie Squid with Source Code.
Download squid.tar
1. cd temp
2. cp /..location... /squid.x.x.tar.bz2
3. tar xjf squid.x.x.tar.bz2
4. cd squid.x.x
5. Three Steps to configure with source code.
5.1. # ./configure
5.2. # make
5.3. # make install
./configure --help
#./configure --ALL OPTIONS.
NORMALY IT INSTALS IN FOLLOWING HIRARCHY
/usr/local/
# make && echo "Sucessful"
Placement of files in proper directories.
#make install && echo "Succesful"
Checking Squid Service & RPM & Uninstall
+=================================
ps aux | grep squid
rmp -qa | grep squid
uninstall
rpm -e squid
+=================================
ls /usr/local/squid/
etc
sbin
var
# vi usr/local/squid/etc/squid.conf
chown nobody:nobody var -R
chmod 2775 var -R
===========================
Create Cache.
# /usr/local/squid/sbin/squid -z
==========================
Start squid.
# /usr/local/squid/sbin/squid -D
To Stop Squid.
# /usr/local/squid/sbin/squid -k shutdown
# /usr/local/squid/sbin/squid -k kill
===========================
transparent proxy
httpd_accel_host virtual
http_accel_with_proxy on
httpd_accel_uses_host_header on
echo "iptables -t nat -aPREROUTING -I eth0 -p tcp --dport 80 -j redirect --to-port 3128">>/etc/rc.local
==========================
how to create a Softlink
#ln -s /usr/local/squid/etc/squid.conf
/etc/squid/squid.conf
+++++++++++++++++++++++++++++++
How to Complie Squid with Source Code.
Download squid.tar
1. cd temp
2. cp /..location... /squid.x.x.tar.bz2
3. tar xjf squid.x.x.tar.bz2
4. cd squid.x.x
5. Three Steps to configure with source code.
5.1. # ./configure
5.2. # make
5.3. # make install
./configure --help
#./configure --ALL OPTIONS.
NORMALY IT INSTALS IN FOLLOWING HIRARCHY
/usr/local/
# make && echo "Sucessful"
Placement of files in proper directories.
#make install && echo "Succesful"
Checking Squid Service & RPM & Uninstall
+=================================
ps aux | grep squid
rmp -qa | grep squid
uninstall
rpm -e squid
+=================================
ls /usr/local/squid/
etc
sbin
var
# vi usr/local/squid/etc/squid.conf
chown nobody:nobody var -R
chmod 2775 var -R
===========================
Create Cache.
# /usr/local/squid/sbin/squid -z
==========================
Start squid.
# /usr/local/squid/sbin/squid -D
To Stop Squid.
# /usr/local/squid/sbin/squid -k shutdown
# /usr/local/squid/sbin/squid -k kill
===========================
transparent proxy
httpd_accel_host virtual
http_accel_with_proxy on
httpd_accel_uses_host_header on
echo "iptables -t nat -aPREROUTING -I eth0 -p tcp --dport 80 -j redirect --to-port 3128">>/etc/rc.local
==========================
No comments:
Post a Comment