2020年12月6日
摘要: nginx 的请求处理流程 接收请求处理模块 接收请求HTTP模块 收到 header 后的11个处理阶段 阅读全文
posted @ 2020-12-06 10:40 manbax 阅读(203) 评论(0) 推荐(0) 编辑
摘要: nginx keepalive 长连接 (1) keepalive_timeout keepalive_timeout timeout [header_timeout]; 第一个参数:设置keep-alive客户端连接在服务器端保持开启的超时值(默认75s);值为0会禁用keep-alive客户端连 阅读全文
posted @ 2020-12-06 09:58 manbax 阅读(353) 评论(0) 推荐(0) 编辑
  2020年12月5日
摘要: nginx 访问限速 使用 nginx 限制单个 IP 的并发连接数能够减少一些采集程序或者 DDOS 的攻击。 使用 nginx 限制下载速度,可以防止下载大文件时,导致网站不可访问。 http { # ... # 限制当前站点最大并发数 50 limit_conn perserver 50; # 阅读全文
posted @ 2020-12-05 15:03 manbax 阅读(155) 评论(0) 推荐(0) 编辑
摘要: nginx autoindex 展示文件索引目录 autoindex 用于文件目录的展示,配置非常简单,但是千万不要暴露敏感信息,官方文档地址 http://nginx.org/en/docs/http/ngx_http_autoindex_module.html。 配置 location /doc 阅读全文
posted @ 2020-12-05 11:30 manbax 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: nginx 开启 gzip 压缩 gzip 可以在 http 块 或者 server 块中配置,一般用于压缩静态资源(图片不建议使用gzip压缩)。 http { # ... before gzip on; gzip_buffers 32 4K; gzip_comp_level 6; gzip_mi 阅读全文
posted @ 2020-12-05 10:33 manbax 阅读(92) 评论(0) 推荐(0) 编辑
摘要: nginx 指定文件路径有两种方式 root 和 alias,两者的主要区别在于 nginx 如何解释 location 后面的 uri。 真实目录与虚拟目录 官方的说,alias 指令用来重置当前文件的目录,lacation 后面的uri 是虚拟目录,而使用 root 时,lacation 后面的 阅读全文
posted @ 2020-12-05 09:56 manbax 阅读(444) 评论(0) 推荐(0) 编辑
  2020年9月28日
摘要: vue 后台管理系统(1)路由篇 vue-router 结构一致的配置 import Vue from 'vue'; import Router from 'vue-router'; import Layout from './index.vue'; Vue.use(Router); /** * 这 阅读全文
posted @ 2020-09-28 10:00 manbax 阅读(1947) 评论(0) 推荐(0) 编辑
  2020年8月11日
摘要: 问题描述:git 删除本地的远程分支报错,remote ref does not exist。 解决办法:清除远程分支的本地缓存:git fetch -p origin,可以通过 git branch -a 查看,我们要删除的远程分支其实已经删除了 阅读全文
posted @ 2020-08-11 23:52 manbax 阅读(1468) 评论(0) 推荐(0) 编辑
  2020年7月29日
摘要: 原文链接:https://www.cnblogs.com/winfred/p/8216650.html 阅读全文
posted @ 2020-07-29 23:39 manbax 阅读(451) 评论(0) 推荐(0) 编辑
  2020年7月22日
摘要: nginx 日志按照日期切割 nginx web 服务器中 access 日志,默认是不能按时间分隔的,每次日志都是打在access.log上,这样久而久之这个日志文件就特别的大,也不利于清理和管理,故此我们肯定是需要做时间上的切割的,那么如何做到完美的切割的呢? 我们采取的方案是利用shell脚本 阅读全文
posted @ 2020-07-22 14:52 manbax 阅读(225) 评论(0) 推荐(0) 编辑