Този сайт използва бисквитки (cookies). Ако желаете можете да научите повече тук. Разбрах
Skip navigation

Изчистване на Squid Proxy кеша и пресъздаване на кеш директориите

3915 прочитания, 1

Въпрос: как да изтрия кеша на squid прокси и да пресъздам кеш директориите на работещ Linux/Unix сървър със стартиран Squid 3.x?

Отговор: следвайте описаните по-долу стъпки

#1: Намерете разположението на кеш директорията на Squid

В терминала въведете командата:

# grep cache_dir /etc/squid/squid.conf

Примерен изход

cache_dir ufs /var/spool/squid 100 16 256

#2: Рестартирайте Squid с изчистване на кеша

Като супер потребител (root) изпълнете:

# squid -k shutdown
# rm -rf /path/to/dir/cache/
# rm -rf /var/spool/squid/

Необходимо е rm командата да се изпълни върху всяка cache_dir локация, която искате да зачистите. Създайте наново директориите:

# squid -z

Примерен изход

2013/08/29 09:24:19| Making directories in /var/spool/squid/00
2013/08/29 09:24:19| Making directories in /var/spool/squid/01
2013/08/29 09:24:19| Making directories in /var/spool/squid/02
2013/08/29 09:24:20| Making directories in /var/spool/squid/03
2013/08/29 09:24:20| Making directories in /var/spool/squid/04
2013/08/29 09:24:20| Making directories in /var/spool/squid/05
2013/08/29 09:24:20| Making directories in /var/spool/squid/06
2013/08/29 09:24:20| Making directories in /var/spool/squid/07
2013/08/29 09:24:20| Making directories in /var/spool/squid/08
2013/08/29 09:24:20| Making directories in /var/spool/squid/09
2013/08/29 09:24:20| Making directories in /var/spool/squid/0A
2013/08/29 09:24:20| Making directories in /var/spool/squid/0B
2013/08/29 09:24:20| Making directories in /var/spool/squid/0C
2013/08/29 09:24:20| Making directories in /var/spool/squid/0D
2013/08/29 09:24:20| Making directories in /var/spool/squid/0E
2013/08/29 09:24:20| Making directories in /var/spool/squid/0F

Стартирайте squid:

# squid

или

# service squid start

Примерен изход

Starting squid:                                                                          [ OK ]

#3: Уверете се, че Squid е стартиран

Изпълнете командите::

# netstat -tulpn | grep :3128
# tail -f /var/log/squid/access.log
# tail -f /var/log/squid/cache.log

(27.09.2013)

КОМЕНТАРИ

 
  
04:23, 27 февруари 2017 # 1
NO AVATAR

Cheap MLB Snapback hats
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport Snapbacks
Cheap NCAA College Hats
Cheap NBA hats
Cheap NFL hats
cheap nba caps
tisa snapback



Cheap MLB Snapback
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport Snapbacks
Cheap NCAA College Hats
Cheap NBA Snapback
Cheap NFL Snapback
cheap nba caps
tisa snapback



Cheap MLB Snapback
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport Snapbacks
Cheap NCAA College Hats
Cheap NBA hats
Cheap NFL hats
cheap nba caps
tisa snapback


Cheap MLB Snapback
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport Snapbacks
Cheap NCAA College Snapback
Cheap NBA Snapback
Cheap NFL Snapback
cheap nba caps
tisa snapback


Cheap MLB hats
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport hats
Cheap NCAA College hats
Cheap NBA hats
Cheap NFL Snapback hats
cheap nba caps
tisa snapback


Cheap MLB Snapbacks
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport Snapbacks
Cheap NCAA College Snapbacks
Cheap NBA Snapbacks
Cheap NFL Snapback
cheap nba caps
tisa snapback

Cheap MLB hats
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Sport hats
Cheap NCAA College hats
Cheap NBA hats
Cheap NFL hats
cheap nba caps
tisa snapback


Cheap MLB Snapbacks
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Snapbacks
Cheap NCAA College Snapbacks
Cheap NBA Snapbacks
Cheap NFL Snapback
cheap nba caps
tisa snapback



Cheap MLB Snapbacks
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Snapbacks
Cheap NCAA College Snapbacks
Cheap NBA Snapbacks
Cheap NFL Snapback
cheap nba caps
tisa snapback


cheap jordans
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan12
Cheap Air Jordan 11


cheap jordans
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan 12
Cheap Jordan 11


cheap jordans
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan 12
Cheap Jordan 11
wholesale jordan shoes


cheap jordans
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan 12
Cheap Jordan 11
wholesale jordan shoes


cheap jordans
cheap jordans for sale
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan 12
Cheap Jordan 11
wholesale jordan shoes


cheap jordans
cheap jordans for sale
Cheap Air Jordans
cheap retro jordans
cheap jordan shoes
cheap jordans free shipping
cheap jordans online
cheap air jordans for sale
Cheap Air Jordan 12
Cheap Jordan 11
wholesale jordan shoes

Cheap MLB Snapbacks
Cheap Snapback hats
Cheap Snapbacks
Cheap NHL Snapbacks
Cheap NCAA College Snapbacks
Cheap NBA Snapbacks
Cheap NFL Snapback
cheap nba caps
tisa snapback










Трябва да сте регистриран потребител, за да коментирате статията
"Изчистване на Squid Proxy кеша и пресъздаване на кеш директориите"



    

© Ай Си Ти Медиа ЕООД 1997 - 2017 съгласно общи условия за ползване