Freebsd11安装varrish记录

Varnish是一款高性能的开源HTTP加速器,挪威最大的在线报纸 Verdens Gang 使用3台Varnish代替了原来的12台Squid,性能比以前更好。
Varnish 的作者Poul-Henning Kamp是FreeBSD的内核开发者之一,他认为现在的计算机比起1975年已经复杂许多。在1975年时,储存媒介只有两种:内存与硬盘。但现在计算机系统的内存除了主存外,还包括了CPU内的L1、L2,甚至有L3快取。硬盘上也有自己的快取装置,因此Squid Cache自行处理物件替换的架构不可能得知这些情况而做到最佳化,但操作系统可以得知这些情况,所以这部份的工作应该交给操作系统处理,这就是 Varnish cache设计架构。
varnish项目是2006年发布的第一个版本0.9.距今已经有十多年,经过varnish开发团队和网友们的辛苦耕耘,现在的varnish已经很健壮。很多门户网站已经部署了varnish,并且反应都很好,甚至反应比squid还稳定,且效率更高,资源占用更少。相信在反向代理,web加速方面,varnish已经有足够能力代替squid。

下面为FREEBSD UNIX安装VARNISH的过程,VARNISH的具体配置过程,以会陆续发布在本博客,敬请期待。

gmake[1]: Leaving directory ‘/usr/ports/www/varnish5/work/varnish-cache-varnish-5.1.3’

====> Compressing man pages (compress-man)

===> Staging rc.d startup script(s)

===>  Installing for varnish5-5.1.3

===>  Checking if varnish5 already installed

===>   Registering installation for varnish5-5.1.3

Installing varnish5-5.1.3…

===> Creating groups.

Creating group ‘varnish’ with gid ‘429’.

===> Creating users

Creating user ‘varnish’ with uid ‘429’.

Creating user ‘varnishlog’ with uid ‘430’.

QUICK-START GUIDE

 

It’s two in the morning and someone posted a link to your website on

slashdot.  Don’t panic, it takes only a minute to set up Varnish in

front of your web server:

1) Install Varnish

2) Reconfigure your web server to listen on localhost:8080

3) sysrc varnishd_enable=YES

4) service varnishd start

 

Refer to the documentation for more advanced configuration.

 

===> SECURITY REPORT:

This port has installed the following files which may act as network

servers and may therefore pose a remote security risk to the system.

/usr/local/sbin/varnishd

/usr/local/bin/varnishtest

 

This port has installed the following startup scripts which may cause

these network services to be started at boot time.

/usr/local/etc/rc.d/varnishncsa

/usr/local/etc/rc.d/varnishd

/usr/local/etc/rc.d/varnishlog

 

If there are vulnerabilities in these programs there may be a security

risk to the system. FreeBSD makes no guarantee about the security of

ports included in the Ports Collection. Please type ‘make deinstall’

to deinstall the port if this is a concern.

 

For more information, and contact details about the security

status of this software, see the following webpage:

http://www.varnish-cache.org/

===>  Cleaning for varnish5-5.1.3

root@wiz:/usr/ports/www/varnish5 # pwd

/usr/ports/www/varnish5

root@wiz:/usr/ports/www/varnish5 # make install clean

 

 

以下文章点击率最高

Loading…

发表评论