Varnish 추가 모듈 설치

Jmnote (토론 | 기여)님의 2017년 7월 17일 (월) 22:28 판 (→‎확인)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
VMOD 추가 설치
varnish 추가 모듈 설치
varnish-modules 설치

1 사전작업[ | ]

CentOS
우분투

2 확인[ | ]

  • CentOS - /usr/lib64/varnish/vmods
  • Ubuntu 16 - /usr/lib/x86_64-linux-gnu/varnish/vmods
[root@zetawiki ~]# ll /usr/lib64/varnish/vmods
total 52
-rwxr-xr-x 1 root root 27552 Mar  5 00:22 libvmod_directors.so
-rwxr-xr-x 1 root root 24472 Mar  5 00:22 libvmod_std.so
root@zetawiki:~# ll /usr/lib/x86_64-linux-gnu/varnish/vmods
total 68
drwxr-xr-x 2 root root  4096 Jul 12 01:40 ./
drwxr-xr-x 3 root root  4096 Jul 12 01:40 ../
-rw-r--r-- 1 root root 30944 Jan 29  2016 libvmod_directors.so
-rw-r--r-- 1 root root 27104 Jan 29  2016 libvmod_std.so
→ so 파일이 2개 밖에 없음

3 git 클론[ | ]

[root@zetawiki ~]# git clone https://github.com/varnish/varnish-modules.git
Initialized empty Git repository in /root/varnish-modules/.git/
remote: Counting objects: 347, done.
remote: Total 347 (delta 0), reused 0 (delta 0), pack-reused 347
Receiving objects: 100% (347/347), 101.24 KiB | 118 KiB/s, done.
Resolving deltas: 100% (181/181), done.

4 bootstrap, configure[ | ]

  • bootstrap
[root@zetawiki ~]# cd varnish-modules/
[root@zetawiki varnish-modules]# ./bootstrap
+ mkdir -p m4
+ aclocal -I m4 -I /usr/share/aclocal
+ libtoolize --copy --force
... (생략)
configure.ac:11: installing `./install-sh'
configure.ac:11: installing `./missing'
src/Makefile.am: installing `./depcomp'
+ autoconf
  • configure
[root@zetaweb varnish-modules]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
... (생략)
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

5 make && make install[ | ]

[root@zetaweb varnish-modules]# make && make install
make  all-recursive
make[1]: Entering directory `/root/varnish-modules'
Making all in src
make[2]: Entering directory `/root/varnish-modules/src'
/usr/share/varnish/vmodtool.py -w ../docs/ -o vcc_cookie_if ../src/vmod_cookie.vcc
/bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I/usr/include/varnish -I../src/foreign -Wall -Werror -Wunused-parameter -Wmissing-prototypes   -g -O2 -MT vcc_cookie_if.lo -MD -MP -MF .deps/vcc_cookie_if.Tpo -c -o vcc_cookie_if.lo vcc_cookie_if.c
... (생략)
test -z "/usr/local/share/doc/varnish-modules" || /bin/mkdir -p "/usr/local/share/doc/varnish-modules"
 /usr/bin/install -c -m 644 README.rst LICENSE '/usr/local/share/doc/varnish-modules'
make[2]: Leaving directory `/root/varnish-modules'
make[1]: Leaving directory `/root/varnish-modules'

6 확인 2[ | ]

[root@zetawiki varnish-modules]# ll /usr/lib64/varnish/vmods/*.so
-rwxr-xr-x 1 root root 46365 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_cookie.so
-rwxr-xr-x 1 root root 27552 Mar  5 00:22 /usr/lib64/varnish/vmods/libvmod_directors.so
-rwxr-xr-x 1 root root 41582 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_header.so
-rwxr-xr-x 1 root root 41077 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_saintmode.so
-rwxr-xr-x 1 root root 27774 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_softpurge.so
-rwxr-xr-x 1 root root 24472 Mar  5 00:22 /usr/lib64/varnish/vmods/libvmod_std.so
-rwxr-xr-x 1 root root 32834 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_tcp.so
-rwxr-xr-x 1 root root 46372 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_var.so
-rwxr-xr-x 1 root root 34735 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_vsthrottle.so
-rwxr-xr-x 1 root root 72882 May 27 11:03 /usr/lib64/varnish/vmods/libvmod_xkey.so

7 같이 보기[ | ]

8 참고[ | ]

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