export http_proxy=http://myusername:mypassword@proxy.acme.com:8080
set HTTP_PROXY=http://myusername:mypassword@proxy.acme.com:8080
set HTTPS_PROXY=http://myusername:mypassword@proxy.acme.com:8080
rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/varnish-release-3.0-1.el5.centos.noarch.rpm
yum install varnish
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
drdb-rhel6 | 871 B 00:00
epel-rhel6 | 871 B 00:00
jenkins-rhel6 | 871 B 00:00
acme_v6 | 871 B 00:00
percona-rhel6 | 871 B 00:00
rhel-x86_64-server-6 | 1.5 kB 00:00
rhel-x86_64-server-optional-6 | 1.5 kB 00:00
rhel-x86_64-server-supplementary-6 | 1.5 kB 00:00
varnish-3.0 | 951 B 00:00
varnish-3.0/primary | 13 kB 00:00
http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
varnish-3.0/primary | 13 kB 00:00
http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from varnish-3.0: [Errno 256] No more mirrors to try.
Workaround:
vi /etc/yum.conf
add:
http_caching=packages
then try again:
yum install varnish
service varnish start
To start a HTTP server I use Python:
http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
run it on 8080
wget 127.0.0.1:8080
if you get 503 Service Unavailable:
vi /etc/varnish/default.vcl
backend default {
.host = "127.0.0.1";
.port = "8080";
}
service varnish stop
service varnish start
Friday, March 28, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment