当前位置:网站首页>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]# 边栏推荐
- The unity editor randomly generates objects. After changing the scene, the problem of object loss is solved
- 赛芯电子冲刺科创板上市:拟募资6.23亿元,共有64项专利申请信息
- Application of pointer in STC89C52 single chip microcomputer and demonstration of practical cases
- Questions about database: database attachment
- Command line Basics
- 【论文写作】英文论文写作指南
- 关于c语言main函数中int argc,char **argv的理解
- 【推荐系统】基于用户的协同过滤简明原理与代码实现
- Solving plane stress problem with MATLAB
- Visual studio 2017 cannot open the include file: 'qopenglfunctions_3_3_core': no such file or directory
猜你喜欢

2020-12-03

Questions about database: database attachment

一文读懂,MES管理系统模块功能

第八届“互联网+”大赛 | 云原生赛道邀你来挑战

If the amount exceeds 6 digits after the decimal point, only 6 digits will be reserved, and if it is less than 6 digits, it will remain the same - Basic accumulation

Mechanical --nx2007 (UG) -- gap analysis (interference inspection)

测试用例设计方法之等价类划分方法

Precautions for postoperative fundus hemorrhage / / must see every day

Preliminary understanding of NVIDIA Jetson nano
![[Thesis Writing] English thesis writing guide](/img/59/88d34814a88a2da19ed6a236825649.png)
[Thesis Writing] English thesis writing guide
随机推荐
Seata 与三大平台携手编程之夏,百万奖金等你来拿
C language final without failing (Part 1)
I, 33 years old, ByteDance test development, unveiled the real income of Beijing "test post"
R language linear regression model fitting diagnosis outliers analysis of domestic gas consumption and calorie examples with self-test questions
How to switch to root in xshell
存储引擎分析
Three text to speech artifacts, each of which is very practical
2022-06-29:x = { a, b, c, d }, y = { e, f, g, h }, x、y两个小数组长度都是4。 如果有: a + e = b + f = c + g = d + h
挖财的课程靠谱吗,让开户安全吗?
MySQL function
How latex enters a matrix
Rubymine development tool, refactoring and intention operation
In depth analysis of a large number of clos on the server_ The root of wait
Practical application of information security
Netease cloud music beta music social app "mus" matches friends of the same frequency through music
Internal class usage scenarios, syntax and principle explanations
Mechanical --nx2007 (UG) -- gap analysis (interference inspection)
[proteus simulation] 8-bit port detection 8 independent keys
首届技术播客月开播在即
浅析现代Web端im即时通讯开发技术