1 개요[ | ]
- Testing Varnish VCL Syntax
- 바니시 vcl 파일 문법 점검
- 바니시 vcl 파일 문법 검사
Bash
Copy
varnishd -C -f /폴더/위치/설정파일.vcl
2 실행예시 1: 정상[ | ]
Console
Copy
[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: 오류[ | ]
Console
Copy
[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 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.