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

(새 문서: ==개요== ;Testing Varnish VCL Syntax ;바니시 vcl 파일 문법 점검 ;바니시 vcl 파일 문법 검사 <source lang='bash'> varnishd -C -f /폴더/위치/설정파일.vcl </s...)
 
24번째 줄: 24번째 줄:
==실행예시 2: 오류==
==실행예시 2: 오류==
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# varnishd -C -f /etc/varnish/20160527-sticky.vcl
[root@zetawiki ~]# varnishd -C -f /etc/varnish/default2.vcl
Message from VCC-compiler:
Message from VCC-compiler:
Could not load VMOD cookie
Could not load VMOD cookie
41번째 줄: 41번째 줄:
==같이 보기==
==같이 보기==
*[[/etc/init.d/varnish]]
*[[/etc/init.d/varnish]]
==참고 자료==
* http://aaronbonner.io/post/14125553826/testing-varnish-vcl-syntax


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

2016년 5월 27일 (금) 01:20 판

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 }}