Skip to content
SRE运维进阶之路SRE运维进阶之路
github icon
    • 常见服务的搭建10
    • 监控17
    • 自动化工具50
    • 计算机网络3
    • 操作系统2
    • 云原生37
    • 前端1
    • Golang6
    • Python46
    • Linux112
    • MySQL14
    • Redis13
    • web中间件18
    sticky icon
    Nginx 学习笔记
    Nginx 学习笔记 推荐教程 nginx核心知识150讲 陶辉 极客时间 :star: Nginx 极简教程 | dunwu OpenResty 最佳实践 | moonbingbing " 以下笔记大部分出自以上教程" 知识体系 Hello Nginx~ 详细的核心知识点 复习思维导图 Summary 1. 初识Nginx; 2. nginx架构基础;

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon小于 1 分钟
    3. nginx配置文件详解
    3. nginx配置文件详解 配置文件详解 1 样例文件解释 2 全局变量 " 参考链接:" "" " https://jasonhzy.github.io/2017/09/03/nginx/" "" " https://blog.csdn.net/tzy233/article/details/79780444" "" " https://blog.csdn

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 11 分钟
    4. 内核参数优化
    4. 内核参数优化 linux内核参数优化(网络模块) 在Linux下调整内核参数,可以直接编辑配置文件/etc/sysctl.conf,然后执行sysctl -p命令生效 文件内容如下: net.core.somaxconn = 262144; web应用中listen函数的backlog默认会给我们内核参数的net.core.somaxconn限制到12

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 6 分钟
    1. 初识Nginx
    1. 初识Nginx 1 Nginx的三个主要应用场景 三个主要应用场景为: 静态资源服务(通过本地文件系统提供服务); 反向代理服务; API服务(OpenRestydeng ); 1.1 反向代理服务 1.1.1 负载均衡 负载均衡,一般包含两方面的含义。 一方面是,将单一的重负载分担到多个网络节点上做并行处理,每个节点处理结束后将结构汇总返回给用户

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 18 分钟
    2. nginx架构基础
    2. nginx架构基础 1 Nginx请求处理流程 2 Nginx进程结构 3 Nginx进程管理:信号 3.1 Master进程 监控worker进程; CHLD; 管理worker进程; 接收信号; TERM,INT; QUIT; HUP; USR1; USR2; WINCH; 3.2 Worker进程 接收信号; TERM,INT

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 2 分钟
    3.1 nginx全局块和events块配置
    3.1 nginx全局块和events块配置 1 example 2 配置CPU参数 Nginx默认没有开启利用多核cpu,我们可以通过增加workercpuaffinity配置参数来充分利用多核cpu的性能。cpu是任务处理,计算最关键的资源,cpu核越多,性能就越好。 2.1 nginx worker_processes worker_processes

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 2 分钟
    3.2 nginxHTTP块配置
    3.2 nginxHTTP块配置 1 配置块的嵌套 2 指令的合并 值指令:存储配置项的值; 可以合并; 示例:root,access_log,gzip; 动作类指令:指定行为; 不可以合并; 示例:rewrite,proxy_pass; 生效阶段:server_rewrite阶段,rewrite阶段,content阶段; 存储值的指令继承规则:

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 3 分钟
    3.4 nginxLOCATION块配置
    3.4 nginxLOCATION块配置 nginx中location的匹配模式有以下几种: 精确匹配:以=开头,只有完全匹配才能生效,例子location = /uri; 非正则匹配:以^~开头,^表示非、~表示正则,例子location ^~ /uri; 正则匹配:; 以~开头,表示区分大小写的正则匹配,例子location ~ pattern;

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 6 分钟
    3.5 nginx常用模块
    3.5 nginx常用模块 1 Module ngxhttpgzip_module 该ngxhttpgzip_module模块是一个使用“gzip”方法压缩响应的过滤器。这通常有助于将传输数据的大小减少一半甚至更多。 " 使用SSL / TLS协议时,压缩的响应可能会受到 BREACH攻击。" 在实际的应用中我们发现压缩的比率往往在 3 到 10 倍,也就是

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 9 分钟
    6. nginx的常见问题
    6. nginx的常见问题 nginx前面有多个反向代理时,proxy的正确设置 注释掉这两行,让它使用默认配置 nginx解决跨域问题 在nginx.conf中编辑 从http跳转到https 项目前期使用http,后期为了安全方面的考虑,启用了https。 项目架构:前端使用nginx作为多个tomcat实例的反向代理和负载均衡。 实际上只需要在ngin

    author iconClaycalendar icon2020年3月20日category icon
    • web中间件
    tag icon
    • Nginx
    timer icon大约 6 分钟
    1
    2
    下一页
    Blogger Avatar
    Clay
    376
    文章
    13
    分类
    38
    标签
    376
    时间轴
    ,,,
    article icon376文章

    • 高级 Bash 脚本编程指南
    • Python 学习笔记
    • Nginx 学习笔记
    • Ansible 学习笔记
    • Jenkins 学习笔记
    • 优秀的技术博客 & 在线工具
    • 聊透监控体系
    备案号:冀ICP备2021007336号
    Copyright © 2023 Clay