yum install python-docutils -y
yum install ncurses-devel -y
yum install pcre-devel -y
yum install libedit-devel -y
wget https://varnish-cache.org/_downloads/varnish-4.0.4.tgz
tar xf varnish-4.0.4.tgz
cd varnish-4.0.4/
./configure && make && make install
varnishd -f /usr/local/var/varnish/example.vcl -t 80000 -s malloc,6000M -a 0.0.0.0:10001