官方文档

varnish 4.0 官方文档翻译11-Parameters

℡╲_俬逩灬. 提交于 2019-12-01 04:00:56
Parameters Varnish cache 拥有一个参数的集合,可以影响varnish的行为和性能。基本上所有的参数都可以在Varnish命令行接口( varnishadm )使用param.set关键词来设置。 一些参数,处于安全的目的只读的参数,只能使用-r参数来开启。同时在varnishd的man手册中也有相关的说明 -r param[,param...] Make the listed parameters read only. This gives the system administrator a way to limit what the Varnish CLI can do. Consider making parameters such as user, group, cc_command, vcc_allow_inline_c read only as these can potentially be used to escalate privileges from the CLI. Protecting listen_address may also be a good idea. 我们不建议你调整参数除非你确定你做的是什么。我们努力的使用稳定的默认值,同时varnish使用默认设置应当能处理大多数的工作情况。

varnish 4.0 官方文档翻译6-用户手册-启动运行文档概况

白昼怎懂夜的黑 提交于 2019-12-01 04:00:20
启动和运行varnish 本节包含了启动,运行,停止varnish,命令行参数,如何与运行着的varnish进程进行通信,配置存储和套接字,安全性和如何保护varnish免受攻击。 Security first 安全第一 Command line arguments 命令行参数 The CLI interface CLI接口 VCL programs VCL程序 HTTP requests HTTP请求 Important command line arguments 重要的命令行参数 '-a' listen_address '-a'监听地址 '-f' VCL-file or '-b' backend '-f'VCL配置文件,'-b' 后端server Other options 其他参数 CLI - bossing Varnish around CLI-向varnish发送指令 What can you do with the CLI CLI可以做什么 Storage backends 后端存储 Intro 简介 malloc 基于内存的缓存 file 基于文件的缓存 persistent (experimental) 持久化(实验中) Transient Storage 暂存 Parameters 参数 Sizing your cache 缓存的大小 来源: oschina

activeMQ5官方文档翻译-运行消息中间件

寵の児 提交于 2019-11-30 20:44:37
把activeMQ中间件运行起来 注:如果你想以内嵌的方式来使用消息中间件的话你可以参照 怎么在一个连接中间嵌入消息中间件 以 二进制文件 的方式分发的 ActiveMQ自带了一个 'activemq'的脚本文件来运行启动一个消息中间件。 如果想了解activemq更详细的启动脚本可以回顾 Unix shell脚本 和 ActiveMQ命令行工具参考 Typing the following will run an ActiveMQ Broker using the out of the box configuration in the foreground 输入下面的命令....(后面的不知道怎么来翻译) bin/activemq console (译者注:在最新的5.11.1版本中要根据本机操作系统的情况进入对应的目录来才能这个命令,比如我的电脑是64位的win8,则输入以下命令: bin/win64/activemq console 你也可以使用 URI配置 的方式来配置启动参数,比如: bin/activemq console broker:(tcp://localhost:61616,network:static:tcp://remotehost:61616)?persistent=false&useJmx=true 或者你也可以根据需要使用 xml配置文件 以

区块链以太坊各种学习资料官方文档白皮书汇总

有些话、适合烂在心里 提交于 2019-11-30 11:01:49
区块链技术和以太坊开发学习的资料如以太坊白皮书,官方文档;web3.js,Solidity,Truffle,geth中文文档;以太坊,IPFS开发环境搭建,私有链搭建,开发部署等资源汇总整理如下: 1. 适合区块链新手的以太坊DApp开发实战入门 2. 区块链,星际文件系统IPFS,Nodejs和MongoDB构建以太坊DApp电商平台 收集了一些免费区块链、以太坊技术开发相关的文件,有需要的可以下载,文件链接: web3.js API官方文档中文版: https://pan.baidu.com/s/1hOV9hEzi7hFxJCL4LTvC6g 以太坊官方文档中文版 : https://pan.baidu.com/s/1ktODJKLMBmkOsi8MPrpIJA 以太坊白皮书中文版 : https://pan.baidu.com/s/1bzAFnzJ35hlQxJ2J4Oj-Ow Solidity的官方文档中文版 : https://pan.baidu.com/s/18yp9XjEqAHpiFm2ZSCygHw Truffle的官方文档中文版 : https://pan.baidu.com/s/1y6SVd7lSLUHK21YF5FzIUQ C#区块链编程指南 : https://pan.baidu.com/s/1sJPLqp1eQqkG7jmxqwn3EA 区块链技术指南:

varnish 4.0 官方文档翻译3-简要教程

此生再无相见时 提交于 2019-11-29 22:31:28
varnish 4.0简要教程 这部分教程包含了varnish基本原理。囊括了什么是varnish、它怎样工作,同时也包含了开始使用和运行varnish。这部分过后你可能想继续了解用户向导(varnish用户引导)。 如果你正在web上读这些呢 注意每页左边的Next topic和Previous topic The fundamentals of web proxy caching with Varnish使用varnish作为web代理缓存的原理 Supported platforms 支持平台 About the Varnish development process varnish开发程序相关信息 Getting in touch 联系 Starting Varnish 开始使用varnish Put Varnish on port 80 让varnish监听在80端口 Restarting Varnish again 再次重启varnish Backend servers 后端服务器 Peculiarities 特色 Now what? Now what? The fundamentals of web proxy caching with Varnish使用varnish作为web代理缓存的原理 varnish是一个http反向代理的缓存

varnish 4.0 官方文档翻译12-VCL

馋奶兔 提交于 2019-11-29 22:31:17
VCL - Varnish Configuration Language 本节包含了怎样通过varnish配置语言vcl来通知varnish如何处理http请求。 varnish是高度结构化的系统。大多数其他的系统使用配置指令,在那里你基本上打开和关闭大量的开关。而我们选择使用领域特定语言,被叫做VCL,来完成之前的功能。 每个进入的请求流通过varnish,同时你可以支配如何通过VCL代码来处理请求。你可以让某些后端直接处理请求,你可以改变请求和响应,或者让varnish拥有各种各样动作依赖于特定的处理请求和响应的阶段。这些特性让Varnish变成特别强力的http程序,而不仅仅是缓存。 varnish转换VCL成二进制代码,当请求到达这些代码将被执行。VCL对varnish的性能损耗是可以忽略不计的。 VCL文件将子程序组织在一起。不同的子程序在不同阶段被执行。一个是在我们收到请求时执行,其他的当从后端收到文件时执行。 如果你在你的子程序不调用某个动作,varnish将执行一些built-in(内建)的VCL代码。你可以看到这些内建的代码在 builtin.vcl 中注释的部分 本节包含以下: VCL Syntax Built in subroutines Request and response VCL objects actions Backend servers

varnish 4.0 官方文档翻译1-管理员文档

和自甴很熟 提交于 2019-11-29 22:31:04
varnish 管理员文档 varnish缓存是web应用加速器,同时也作为http反向缓存代理被人熟知。你可以安装varnish在任何http的前端,同时配置它缓存内容。varnish真的很快,单个代理的分发速度可以达到300-1000x,依赖与你的服务器架构。 开始使用varnish我们建议你阅读安装向导, Varnish Installation 。一旦varnish启动运行,我们建议你使用基础教程 Thte Varnish tutorial ,最后再是 The Varnish User Guide . 如果你想了解怎样使用varnish特定工具, The Varnish Reference Manual 包含这些工具的详细文档。 varnish4.0较3.x的变动,你可以查看 What's new in Varnish 4.0 。最后,我们从 Poul-Henning Kamp 收集了一些关于varnish和http的博客。 通常情况可以使用: service varnish restart 要么使用终端或者使用工具。 /usr/local/, varnishadm, sess_timeout 各种各样的配置参数或者路径 http://www.varnish-cache.org/ 官方网站的超链接 长的列表命令输出和VCL看起来像下面这样: $ /opt/varnish

varnish 4.0 官方文档翻译13-VCL Syntax

戏子无情 提交于 2019-11-29 22:30:50
VCL Syntax varnish从C继承了很多,同时它读起来像简单的C或者是Perl。 块由大括号分隔,语句用分号结束,注释可以根据自己的喜好来写为C,C ++或Perl的注释。 注意VCL不包含任何循环和跳转语句。 本节提供大致最重要部分的语法。完整的VCL语法文档请查看 https://www.varnish-cache.org/docs/4.0/reference/vcl.html#reference-vcl Strings 基本的字符是被双引号引起来,像"...",同时不可以跨行。 反斜杠不是特别的,例如regsub你不需要对\进行转义: regsub("barf", "(b)(a)(r)(f)", "\4\3\2p") -> "frap" 长字符应该被{"..."}。它们可以包含任何字符包括"、跨行、除了NUL(0×00)字符等控制字符。如果你真的想字符串中使用NUL字符,VMOD,使得它可以创建这样的字符串。 Access control lists (ACLs) ACL申明创建和初始化一个权限控制列表,通常用来匹配客户端地址: acl local { "localhost"; // myself "192.0.2.0"/24; // and everyone on the local network ! "192.0.2.23"; // except for

varnish 4.0 官方文档翻译4-varnish用户手册概况

点点圈 提交于 2019-11-29 22:30:34
The Varnish Users Guide varnish用户手册 varnish 文档包含三个主要的文档: The Varnish Tutorial 解释一些基本的东西让你开始使用varnish The Varnish Users Guide 说明varnish怎样工作以及怎么使用. The Varnish Reference Manual 包含具体的例子并且解决实际问题 然后是 The Big Varnish Picture (varnish整体情况) 用户手册将varnish作为服务运行的主要方面组织起来。 Starting and running 关于如何配置,使用什么存储(内存还是磁盘),sockets,安全,和运行的varnish如何通信。 VCL Varnish Configuration Language (varnish的配置语言)以你想要了方式来处理http请求,缓存什么,怎么缓存,修改http的头信息,等等 Reporting and statistics (报告和统计) 说明你怎样监控varnish是做了什么,汇总交易信息. Varnish and Website Performance 如何使用varnish来调优你的网站。 Troubleshooting Varnish 找出和修正常见的问题 The Big Varnish Picture

varnish 4.0 官方文档翻译14-Built in subroutines

青春壹個敷衍的年華 提交于 2019-11-28 21:56:53
Built in subroutines vcl_recv 在接收到完整的客户端请求后调用这个子程序。它决定是否处理请求,怎样处理请求,使用哪一个后端。 它也可运用于修改请求,一些经常自己做的事情。 vcl_recv 子程序可以通过调用return()来结束,通过以下关键字: synth(status code, reason) Return a synthetic object with the specified status code to the client and abandon the request. 返回一个人为对象使用指定的状态码给客户端或者放弃请求。 pass Switch to pass mode. Control will eventually pass to vcl_pass. 处理跳转到vcl_pass pipe Switch to pipe mode. Control will eventually pass to vcl_pipe. 处理跳转到vcl_pipe hash Continue processing the object as a potential candidate for caching. Passes the control over to vcl_hash. 处理跳转到vcl_hash,在缓存中查找对象,如果有则为命中,