Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

24

2025Mar

If you obey all the rules, you'll miss all the fun.

凡事都墨守成规,就毫无乐趣了。

08 2020 档案

摘要:nginx获取后端真实IP,添加后端服务器响应时间并记录日志 1.日志定义 log_format nginx 'remoteaddrremote_user [time_local] "request" ' 'status body_bytes_sent "$http_refere 阅读全文
posted @ 2020-08-13 14:43 陈雷雷 阅读(2653) 评论(0) 推荐(0) 编辑
摘要:rsync配置 服务器端: cat /etc/rsyncd.conf : uid = rsync gid = rsync use chroot = no max connections = 200 timeout = 300 pid file = /var/run/rsyncd.pid lock f 阅读全文
posted @ 2020-08-11 15:04 陈雷雷 阅读(337) 评论(0) 推荐(0) 编辑
摘要:HTTP基础原理 响应报文头 [root@k8s-node2 ~]# curl -I 127.0.0.1:8080 HTTP/1.1 200 OK #请求的响应码状态码 Server: nginx/1.16.1 #web服务信息和软件版本 Date: Tue, 04 Aug 2020 04:09:2 阅读全文
posted @ 2020-08-04 21:46 陈雷雷 阅读(143) 评论(0) 推荐(0) 编辑
摘要:用户访问网站流程 1. 首先dns对域名进行解析 2. 客户端和解析得到的IP地址进行三次握手,建立tcp连接 3. 客户端向网站服务器发送http请求报文 包含 请求方法 请求行 请求头 空行 请求主体[get方法中没有请求主体,post方法中会有请求主体] 4. 网站服务器向客户端发送http响 阅读全文
posted @ 2020-08-04 21:44 陈雷雷 阅读(318) 评论(0) 推荐(0) 编辑
摘要:user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /e 阅读全文
posted @ 2020-08-02 12:36 陈雷雷 阅读(347) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示