우분투14 varnish 4.1 설치

  다른 뜻에 대해서는 CentOS varnish 4.1 설치 문서를 참조하십시오.
우분투 varnish 4.1 설치

1 확인[ | ]

root@zetawiki:~# varnishd -V
The program 'varnishd' is currently not installed. You can install it by typing:
apt-get install varnish

2 저장소 등록[ | ]

root@zetawiki:~# apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  apt-transport-https
1 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
Need to get 25.0 kB of archives.
After this operation, 4,096 B disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apt-transport-https amd64 1.0.1ubuntu2.14 [25.0 kB]
Fetched 25.0 kB in 0s (32.9 kB/s)              
(Reading database ... 88761 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.0.1ubuntu2.14_amd64.deb ...
Unpacking apt-transport-https (1.0.1ubuntu2.14) over (1.0.1ubuntu2.11) ...
Setting up apt-transport-https (1.0.1ubuntu2.14) ...
root@zetawiki:~# curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2442  100  2442    0     0   1248      0  0:00:01  0:00:01 --:--:--  1248
OK
root@zetawiki:~# echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.1" >> /etc/apt/sources.list.d/varnish-cache.list
root@zetawiki:~# cat /etc/apt/sources.list.d/varnish-cache.list
deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.1

3 apt-get update[ | ]

root@zetawiki:~# apt-get update
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Get:1 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://security.ubuntu.com trusty-security/main Sources
... (생략)

4 설치[ | ]

root@zetawiki:~# apt-get install varnish
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libvarnishapi1
Suggested packages:
  varnish-doc
The following NEW packages will be installed:
  libvarnishapi1 varnish
0 upgraded, 2 newly installed, 0 to remove and 83 not upgraded.
Need to get 597 kB of archives.
After this operation, 1,870 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://repo.varnish-cache.org/ubuntu/ trusty/varnish-4.1 libvarnishapi1 amd64 4.1.3-1~trusty [58.8 kB]
Get:2 https://repo.varnish-cache.org/ubuntu/ trusty/varnish-4.1 varnish amd64 4.1.3-1~trusty [538 kB]
Fetched 597 kB in 5s (103 kB/s)
Selecting previously unselected package libvarnishapi1.
(Reading database ... 88761 files and directories currently installed.)
Preparing to unpack .../libvarnishapi1_4.1.3-1~trusty_amd64.deb ...
Unpacking libvarnishapi1 (4.1.3-1~trusty) ...
Selecting previously unselected package varnish.
Preparing to unpack .../varnish_4.1.3-1~trusty_amd64.deb ...
Unpacking varnish (4.1.3-1~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libvarnishapi1 (4.1.3-1~trusty) ...
Setting up varnish (4.1.3-1~trusty) ...
 * Starting HTTP accelerator varnishd                                                     [ OK ] 
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for ureadahead (0.100.0-16) ...

5 확인 2[ | ]

root@zetawiki:~# netstat -tnlp | grep varnish
tcp        0      0 0.0.0.0:6081            0.0.0.0:*               LISTEN      17656/varnishd  
tcp        0      0 127.0.0.1:6082          0.0.0.0:*               LISTEN      17656/varnishd  
tcp6       0      0 :::6081                 :::*                    LISTEN      17656/varnishd  
tcp6       0      0 ::1:6082                :::*                    LISTEN      17656/varnishd

6 같이 보기[ | ]

7 참고[ | ]

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