国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Varnish-高效的HTTPaccelerator

Varnish - 高效的 HTTP accelerator收藏

原貼:http://www.iuiuiu.com/plog/post/2/313

Varnish - 高效的 HTTP accelerator

04/11/2007

這幾天在 google 找別的東西的時(shí)候看到 Varnish,其項(xiàng)目主頁(yè)上的簡(jiǎn)單介紹:

Varnish is a state-of-the-art, high-performance HTTPaccelerator. Varnish is targeted primarily at the FreeBSD 6 and Linux2.6 platforms, and will take full advantage of the virtual memorysystem and advanced I/O features offered by these operating systems.

Varnish 的主要開(kāi)發(fā)者是 Poul-Henning Kamp,是 FreeBSD 方面的專(zhuān)家。Varnish 從根上設(shè)計(jì)的就是作為反向代理使用的,作者認(rèn)為 squid 等有點(diǎn)過(guò)時(shí)了,沒(méi)有考慮到現(xiàn)在硬件的發(fā)展,而 Varnish 是相當(dāng)?shù)?modern~~,在他寫(xiě)的這篇 ppt中有詳細(xì)介紹。Varnish 網(wǎng)站上稱(chēng)在相同硬件條件下效率要比 squid 高 10-20 倍, 目前在挪威最大的報(bào)社 VerdensGang (http://www.vg.no/)上運(yùn)行,據(jù)說(shuō)用 1 臺(tái) Varnish 替代了原來(lái) 12 臺(tái) squid,效率還是很可觀的。

安裝使用也比較簡(jiǎn)單,啟動(dòng) varnishd 加速本機(jī)的 8080 端口:

varnishd -a :80 -b localhost:8080
或者使用 Varnish configuration language (VCL) 文件來(lái)配置:
backend webserver {
        set backend.host = "localhost";
        set backend.port = "8080";
}

sub vcl_recv {
        if (req.http.host ~ "") {
                set req.backend = webserver;
        } else {
                error 404 "You requested a document from an unknown virtual host.";
        }
}

項(xiàng)目主頁(yè)上提供的文檔不是很多,google 到一篇 Working with Varnish and Plone,有大致的解釋和示例,更多的信息得去 man 里找。

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
Varnish3.0中文入門(mén)教程 | AnyKoro
CentOS 5.5環(huán)境下安裝配置Varnish
Varnish 緩存服務(wù)器配置
Linux服務(wù)篇--varnish緩存
Varnish應(yīng)用和實(shí)例詳解
使用Varnish代替Squid做網(wǎng)站緩存加速器的詳細(xì)解決方案
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服