当前位置:网站首页>Varnish 基础概览5
Varnish 基础概览5
2022-06-30 01:21:00 【franket】
使用浏览器访问 http://192.168.100.101:6081/ 或 http://127.0.0.1:6081/
就可以获得 www.boohee.com 的主页内容
随便点击主页上的链接发现都可以访问,说明 varnish 已经成功进行了代理
高级主配置
/etc/sysconfig/varnish 是 varnish 的主配置文件
将其中的 VARNISH_LISTEN_PORT=6081 改为 VARNISH_LISTEN_PORT=80
[[email protected] varnish]# vim /etc/sysconfig/varnish
[[email protected] varnish]# grep -v "^#" /etc/sysconfig/varnish | cat -s
NFILES=131072
MEMLOCK=82000
NPROCS="unlimited"
RELOAD_VCL=1
VARNISH_VCL_CONF=/etc/varnish/default.vcl
VARNISH_LISTEN_PORT=80
VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
VARNISH_ADMIN_LISTEN_PORT=6082
VARNISH_SECRET_FILE=/etc/varnish/secret
VARNISH_MIN_THREADS=50
VARNISH_MAX_THREADS=1000
VARNISH_THREAD_TIMEOUT=120
VARNISH_STORAGE_SIZE=256M
VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"
VARNISH_TTL=120
DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
-f ${VARNISH_VCL_CONF} \
-T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
-t ${VARNISH_TTL} \
-p thread_pool_min=${VARNISH_MIN_THREADS} \
-p thread_pool_max=${VARNISH_MAX_THREADS} \
-p thread_pool_timeout=${VARNISH_THREAD_TIMEOUT} \
-u varnish -g varnish \
-S ${VARNISH_SECRET_FILE} \
-s ${VARNISH_STORAGE}"
[[email protected] varnish]# 边栏推荐
- 优秀的测试/开发程序员与普通的程序员对比......
- Seata 与三大平台携手编程之夏,百万奖金等你来拿
- Cantilever beam calculation [matlab code]
- Ansible ad-hoc 临时命令
- The listing of Symantec electronic sprint technology innovation board: it plans to raise 623million yuan, with a total of 64 patent applications
- Crmeb SMS for program configuration of knowledge payment system
- [Thesis Writing] English thesis writing guide
- [mrctf2020]ezpop-1 | PHP serialization
- Seata and the three platforms are working together in the summer of programming. Millions of bonuses are waiting for you
- Quick Pow: 如何快速求幂
猜你喜欢

How to view the size of all files in a folder?

How to switch to root in xshell

81. search rotation sort array II

【推荐系统】基于用户的协同过滤简明原理与代码实现

81. 搜索旋转排序数组 II
![[Thesis Writing] English thesis writing guide](/img/59/88d34814a88a2da19ed6a236825649.png)
[Thesis Writing] English thesis writing guide

Antd - tree structure: default deployment node attribute failure - Basic promotion

Kubernetes 核心对象概览详解

Practical application of information security

Newton method (optimization of two variable functions)
随机推荐
3-6sql injection website instance step 5: break through the background to obtain web administrator permissions
Machine learning notes: time series decomposition STL
Practical application of information security
清洁、对话、带娃,扫地机摆脱“人工智障”标签
[recommended] how to quickly locate a bug during testing
2022-06-29: x = {a, B, C, D}, y = {e, F, G, H}, the length of the two small arrays X and Y is 4. If yes: a + e = B + F = C + G = D + H
Twitter launches the test of anti abuse tool "safe mode" and adds enabling prompt
测试用例设计方法之等价类划分方法
The first technology podcast month will be launched soon
【Proteus仿真】8位端口检测8独立按键
Command line Basics
2022-06-29:x = { a, b, c, d }, y = { e, f, g, h }, x、y两个小数组长度都是4。 如果有: a + e = b + f = c + g = d + h
How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method
在线SQL转CSV工具
【论文写作】英文论文写作指南
Application of pointer in STC89C52 single chip microcomputer and demonstration of practical cases
2020-12-03
利用huggingface进行文本分类
RubyMine开发工具,重构和意图操作
MES管理系统功能模块之质量管理