Clear Squid Cache And re-create Cache Directories

Linuxtopic
0
Question : how to clear squid cache directory ?

Step 1

Find Squid cache directory location

# grep cache_dir /etc/squid/squid.conf

Step 2

Restart Squid with an empty cache
# squid -k shutdown
Step 3

Delete the  Cache directory by following command 
# rm -rf  < your cache dir path >
# rm -rf /var/spool/squid/
Step 4

Now Create Directory 

# mkdir /var/spool/squid
Step 5 

Set Permission

# chown squid:squid /var/spool/squid

SELinux user : command

# restorecon -vr /var/spool/squid

Step 6

Re-create the cache directories
# squid -z

Step 7 
# service squid restart



Post a Comment

0Comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!