"Varnish vcl 파일 문법검사"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
 
(다른 사용자 한 명의 중간 판 4개는 보이지 않습니다)
41번째 줄: 41번째 줄:
==같이 보기==
==같이 보기==
*[[/etc/init.d/varnish]]
*[[/etc/init.d/varnish]]
*[[Could not load VMOD cookie]]


==참고 자료==
==참고==
* http://aaronbonner.io/post/14125553826/testing-varnish-vcl-syntax
* http://aaronbonner.io/post/14125553826/testing-varnish-vcl-syntax
* https://codepoets.co.uk/2011/checking-varnish-configuration-syntax/


[[분류: varnish]]
[[분류: varnish]]
[[분류: .vcl]]
[[분류: .vcl]]

2017년 6월 27일 (화) 14:45 기준 최신판

1 개요[ | ]

Testing Varnish VCL Syntax
바니시 vcl 파일 문법 점검
바니시 vcl 파일 문법 검사
varnishd -C -f /폴더/위치/설정파일.vcl

2 실행예시 1: 정상[ | ]

[root@zetawiki ~]# varnishd -C -f /etc/varnish/default.vcl
/* ---===### include/vcl.h ###===--- */
... (생략)
	.synth_func = VGC_function_vcl_synth,
	.backend_fetch_func = VGC_function_vcl_backend_fetch,
	.backend_response_func = VGC_function_vcl_backend_response,
	.backend_error_func = VGC_function_vcl_backend_error,
	.init_func = VGC_function_vcl_init,
	.fini_func = VGC_function_vcl_fini,
};

3 실행예시 2: 오류[ | ]

[root@zetawiki ~]# varnishd -C -f /etc/varnish/default2.vcl
Message from VCC-compiler:
Could not load VMOD cookie
	File name: /usr/lib64/varnish/vmods/libvmod_cookie.so
	dlerror:: /usr/lib64/varnish/vmods/libvmod_cookie.so: cannot open shared object file: No such file or directory
('input' Line 16 Pos 8)
import cookie;

-------######--

Running VCC-compiler failed, exited with 2

VCL compilation failed

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}