当前位置:网站首页>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]# 边栏推荐
- MySQL function
- SFDP super form development platform v6.0.4 was officially released
- Reading is the cheapest noble
- 练习副“产品”:自制七彩提示字符串展示工具(for循环、if条件判断)
- 关于c语言main函数中int argc,char **argv的理解
- Equivalence class partition method for test case design method
- Machine learning notes: time series decomposition STL
- 快手伸手“供给侧”,找到直播电商的“源头活水”?
- 【three.js】WEB3D初次体验
- Questions about database: database attachment
猜你喜欢

在线文本数字识别列表求和工具

How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method
![[recommendation system] concise principle and code implementation of user based collaborative filtering](/img/3b/d46e37e7ae245cf2931d32d1ebbe4c.png)
[recommendation system] concise principle and code implementation of user based collaborative filtering

The first technology podcast month will be launched soon

UDP servers and clients in go

我,33岁,字节跳动测试开发,揭开北京“测试岗”的真实收入
![Cantilever beam calculation [matlab code]](/img/f6/9a1338e00777e91f6c340eae9d52ba.jpg)
Cantilever beam calculation [matlab code]

Cub school learning: manual query and ADC in-depth use

快手伸手“供给侧”,找到直播电商的“源头活水”?

How to seamlessly transition from traditional microservice framework to service grid ASM
随机推荐
Equivalence class partition method for test case design method
c语言选择,循环概述
英伟达Jetson Nano的初步了解
MES管理系统功能模块之质量管理
The first technology podcast month will be launched soon
I learned database at station B (V): DQL exercise
Quick pow: how to quickly find power
[Thesis Writing] English thesis writing guide
测试用例设计方法之等价类划分方法
Understand the module function of MES management system
Analysis of IM instant messaging development technology on modern web
Clean, talk, bring children, and get rid of the label of "artificial mental retardation" for the sweeper
Solving plane stress problem with MATLAB
2020-12-03
The Web3 era is coming? Inventory of five Web3 representative projects | footprint analytics
STC89C52 single chip microcomputer simple calculator design and code demonstration
PHP wechat merchant transfer to change initiating merchant transfer API
Mechanical --nx2007 (UG) -- gap analysis (interference inspection)
ResizeKit2.NET大小和分辨率独立
[recommendation system] concise principle and code implementation of user based collaborative filtering