Google Adsense

Thursday, May 19, 2011

Making Squid cache outside the default directory

Making Squid cache outside the default directory
Squid proxy cache server in ClearOS default located at / var / spool / squid.Jika us
want to use another partition or another hard disk as separate from the squid
system, then inevitably have to replace its cache directory.
The steps are as follows:
1. Create another partition (not a directory / folder you know, but partitions) on my hard drive, for example /    cache
2. Create a large volume, such as Ext3 12GB
3. Give access rights to the partition squidnya

code
# chown squid:squid /cache 



4. Edit the squid.conf file, the cache_dir, change its path to / cache, the other parameters do not need
replaced (if you do not understand the distribution of L1 and L2), let us change it later via
webconfig aja
5. Create swap Squid

code
# squid -z 



6. Login webconfig, adjust the parameters, but remember, the maximum cache size should not
maximized until the cache volume, make it 75% only, eg / Cache = 12GB, maximum
cache sizenya = 9GB
7. Run squid and set it to automatic re-loaded so that if a server restart. activate
transparent if necessary ...

No comments:

Post a Comment