Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Sergey Veltistov                     2:5020/3700.352 14 Dec 2000  01:10:06
 To : Alexey Dokuchaev
 Subject : /usr: optimization changed from TIME to SPACE
 -------------------------------------------------------------------------------- 
 
 
 12 Дек 00 07:19, Alexey Dokuchaev -> All:
 
  >> squid -z просто создает кэш, а что (кто) его чистит?
 
  AD> Я обычно для сквидовского кэша создаю отдельную партицию гигов на 2-4,
  AD> и когда кэш нужно/хочется почистить, просто говорю newfs :)  Затем
  AD> squid -z, конечно..
 
 Тяжело тебе :-)))
 
 7.3 I want to restart Squid with a clean cache
 
 Note: The information here is current for version 2.2.
 
 First of all, you must stop Squid of course. You can use the command:
 
         % squid -k shutdown
 
 The fastest way to restart with an entirely clean cache is to over write the
 swap.state files for each cache_dir in your config file. Note, you can not just 
 remove the
 swap.state file, or truncate it to zero size. Instead, you should put just one
 byte of garbage there. For example:
 
         % echo "" > /cache1/swap.state
 
 Repeat that for every cache_dir, then restart Squid. Be sure to leave the
 swap.state file with the same owner and permissions that it had before!
 
 Another way, which takes longer, is to have squid recreate all the cache_dir
 directories. But first you must move the existing directories out of the way.
 For example,
 you can try this:
 
         % cd /cache1
         % mkdir JUNK
         % mv ?? swap.state* JUNK
         % rm -rf JUNK &
 
 Repeat this for your other cache_dir's, then tell Squid to create new
 directories:
 
         % squid -z
 
  ю Все вышесказанное имеет естественное пpоисхождение.
 
 --- Out of control. ---
  * Origin: DADDY'S gonna pay for your crashed car. (2:5020/3700.352)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 /usr: optimization changed from TIME to SPACE   Sergey N. Goryachev   30 Nov 2000 19:12:40 
 Re: /usr: optimization changed from TIME to SPACE   Valentin Nechayev   30 Nov 2000 21:11:01 
 Re: /usr: optimization changed from TIME to SPACE   Sergey N. Goryachev   01 Dec 2000 11:42:03 
 Re: /usr: optimization changed from TIME to SPACE   Valentin Nechayev   01 Dec 2000 12:37:10 
 Re: /usr: optimization changed from TIME to SPACE   Alexey Dokuchaev   12 Dec 2000 08:19:42 
 /usr: optimization changed from TIME to SPACE   Sergey Veltistov   14 Dec 2000 01:10:06 
Архивное /ru.unix.bsd/52463a381010.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional