Commit 94e6bb0b authored by Igor Pečovnik's avatar Igor Pečovnik
Browse files
parent 2ce19a30
...@@ -222,12 +222,29 @@ install_varnish (){ ...@@ -222,12 +222,29 @@ install_varnish (){
#-------------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------------
# Install high-performance HTTP accelerator # Install high-performance HTTP accelerator
#-------------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------------
apt-get -y -qq install python-docutils python-sphinx automake autotools-dev libjemalloc-dev libtool pkg-config libncurses-dev libpcre3-dev libedit-dev wget -O - https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
git clone https://github.com/varnish/Varnish-Cache /tmp/varnish cat > /etc/apt/sources.list.d/varnish-cache.list<<EOF
cd /tmp/varnish deb-src https://repo.varnish-cache.org/debian/ jessie varnish-4.1
./autogen.sh EOF
./configure apt-get update
make && make install apt-get build-dep varnish -y
cd /tmp
apt-get source varnish -y
rm varnish_*.dsc
rm varnish_*.orig.tar.gz
rm varnish_*.diff.gz
cd varnish-4*
./configure --prefix=/usr
make -j$(ncpu)
make install
cp debian/varnish.init /etc/init.d/varnish
chmod +x /etc/init.d/varnish
cp debian/varnish.default /etc/default/varnish
update-rc.d varnish defaults
mkdir -p /etc/varnish
cp etc/example.vcl /etc/varnish/default.vcl
dd if=/dev/random of=/etc/varnish/secret count=1
service varnish start
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment