Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101608
  • 博文数量: 32
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2014-05-17 11:06
个人简介

hello world

文章分类
文章存档

2015年(1)

2014年(31)

我的朋友

分类: LINUX

2014-05-27 11:08:20

    简单的说Varnish是一款高性能的开源HTTP加速器,具体的介绍大家可以从查看。
话不多说,直接开始操作过程。

本次介绍的是使用Varnish官方提供的发布包安装方式。安装说明可参考官方帮助文档

如果是在CentOS5/Redhat5系统下安装
# rpm --nosignature -i
如果是在CentOS6/Redhat6系统下安装
# rpm --nosignature -i 
然后
# yum install varnish
如果出现以下错误
Resolving Dependencies
--> Running transaction check
---> Package varnish.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Processing Dependency: varnish-libs = 3.0.5-1.el5.centos for package: varnish
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: varnish
--> Processing Dependency: libvarnishapi.so.1()(64bit) for package: varnish
--> Processing Dependency: libedit.so.0()(64bit) for package: varnish
--> Running transaction check
---> Package varnish.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: varnish
---> Package varnish-libs.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Finished Dependency Resolution
varnish-3.0.5-1.el5.centos.x86_64 from varnish-3.0 has depsolving problems
  --> Missing Dependency: libedit.so.0()(64bit) is needed by package varnish-3.0.5-1.el5.centos.x86_64 (varnish-3.0)
Error: Missing Dependency: libedit.so.0()(64bit) is needed by package varnish-3.0.5-1.el5.centos.x86_64 (varnish-3.0)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
修复处理方法如下,配置epel仓库即可
如果你的系统是centos5/redhat5的i386架构
# rpm -Uvh
如果是x86_64架构
# rpm -Uvh
同理,假如是centos6/redhat6的i386架构
# rpm -Uvh 
如果是x86_64架构
# rpm -Uvh 
安装完之后,再执行
# yum install varnish
配置varnish启动
# /etc/init.d/varnish start
# chkconfig --level 345 varnish on

Varnish配置
/etc/varnish/ 存放varnish VCL配置文件
/etc/sysconfig/varnish 【CentOS】 存放varnish服务器运行的参数
/usr/sbin/varnishd varnish服务器执行文件
/etc/init.d/varnish 运行程序

参考:







阅读(1382) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~