Sun Java System Web Proxy Server 4.0.4 관리 설명서

캐시 디렉토리 구조 구축

cbuild라고 하는 프록시 유틸리티는 오프라인 캐시 데이터베이스 관리자입니다. 이 유틸리티를 사용하여 새 캐시 구조를 만들거나 명령줄 인터페이스를 사용하여 기존 캐시 구조를 수정할 수 있습니다. Server Manager 페이지를 사용하여 프록시에서 새롭게 만든 캐시를 사용할 수 있습니다.


주 –

유틸리티는 server.xml 파일을 업데이트하지 않습니다. cbuild는 파티션이 여러 개인 캐시의 크기를 조정할 수 없습니다. cbuild에서 캐시를 만들거나 수정하면 cachecapacity 매개 변수를 server.xml 파일에서 수동으로 업데이트해야 합니다.

<PARTITION partitionname="part1" partitiondir="/home/build/install9
/proxy-server1/cache" maxsize="1600" minspace="5" enabled="true"/>
<CACHE enabled="true" cachecapacity="2000" cachedir="/tmp/cache">

두 가지 모드로 cbuild 유틸리티를 호출할 수 있습니다. 첫 번째 모드는 다음과 같습니다.

cbuild -d conf-dir -c cache-dir -s cache size 
cbuild -d conf-dir -c cache-dir -s cache size -r

예:

cbuild -d server_root/proxy-serverid/config 
	-c server_root/proxy-serverid/cache -s 512
cbuild -d server_root/proxy-serverid/config 
	-c server_root/proxy-serverid/cache -s 512 -r

여기서

두 번째 모드는 다음과 같습니다.

cbuild -d conf-dir -c cache-dir -n cache-dim
cbuild -d conf-dir -c cache-dir -n cache-dim -r

예:

cbuild -d server_root/proxy-serverid/config 
	-c server_root/proxy-serverid/cache -n 3
cbuild -d server_root/proxy-serverid/config 
	-c server_root/proxy-serverid/cache -n 3 -r

여기서