|
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) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/52463a381010.html, оценка из 5, голосов 10
|