当前位置:网站首页>Varnish 基础概览6
Varnish 基础概览6
2022-06-30 01:21:00 【franket】
使用 /etc/init.d/varnish restart 重启服务
[[email protected] varnish]# /etc/init.d/varnish restart
Stopping Varnish Cache: [ OK ]
Starting Varnish Cache: [ OK ]
[[email protected] varnish]#Tip: 这种情况下用 /etc/init.d/varnish reload 是无法重新加载配置的
这时系统里多出了 80 端口
[[email protected] varnish]# netstat -ant | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 1 1 192.168.1.130:34104 103.245.222.133:80 LAST_ACK
tcp 1 0 192.168.1.130:59686 140.207.194.83:80 CLOSE_WAIT
tcp 0 0 :::80 :::* LISTEN
[[email protected] varnish]# 再次使用浏览器访问 http://192.168.100.101/ 或 http://127.0.0.1/ 就可以获得 www.boohee.com 的主页内容
其它配置选项都可以在注释中看到相应解释
Item | Explain |
|---|---|
-a | 指定监听IP和端口,默认为0.0.0.0:6081 |
-f | 指定主VCL配置文件 |
-T | 远程管理端口和地址,默认为127.0.0.1:6082 |
-p | 设定线程参数,最大最小数,timeout值 |
-u | worker工作身份 |
-g | worker工作组 |
-S | 管理的认证密码文件 |
-s | 存储空间大小 |
/etc/sysconfig/varnish 配置文件中,上面对参数进行设置,下面进行引用 ,也可以注释掉原有的,使用自己的配置
边栏推荐
- Sentinel source code analysis Part 7 - sentinel adapter module - Summary
- How to seamlessly transition from traditional microservice framework to service grid ASM
- xshell中怎么切换到root用户
- Sklearn notes: make_ Blobs generate clustering data
- Interview summary
- Live broadcast configuration of crmeb knowledge payment system program configuration (method 2)
- Stimulsoft Reports报告工具,Stimulsoft创建和构建报告
- R language linear regression model fitting diagnosis outliers analysis of domestic gas consumption and calorie examples with self-test questions
- Quick Pow: 如何快速求幂
- 阅读,是最廉价的高贵
猜你喜欢

How latex enters a matrix

Is the numpy index the same as the image index?

The first technology podcast month will be launched soon

Machinery -- nx2007 (UG) finite element analysis tutorial 1 -- simple object

Transaction summary on June 25, 2022

清洁、对话、带娃,扫地机摆脱“人工智障”标签

Seata 与三大平台携手编程之夏,百万奖金等你来拿

Preliminary understanding of NVIDIA Jetson nano

Kwai reached out to the "supply side" to find the "source" of live broadcast e-commerce?

The listing of Symantec electronic sprint technology innovation board: it plans to raise 623million yuan, with a total of 64 patent applications
随机推荐
Online text digit recognition list summation tool
[recommendation system] concise principle and code implementation of user based collaborative filtering
[deep learning compilation] operator compilation IR conversion
Resizekit2.net size and resolution independent
Vl6180x distance and light sensor hands-on experience
Statsmodels notes STL
利用tsne将不同句子关于相似度可视化出来
MySql函数
Machine learning notes: time series decomposition STL
Wechat applet - requestsubscribemessage:fail can only be invoked by user tap gesture
HC32M0+ GPIO
Is the numpy index the same as the image index?
Equivalence class partition method for test case design method
Pytroch Learning Notes 6: NN network layer convolution layer
[recommended] how to quickly locate a bug during testing
优秀的测试/开发程序员与普通的程序员对比......
Quick Pow: 如何快速求幂
Online sql to CSV tool
Shell spec date format
MySQL installation steps (detailed)