摘要:
https://blog.csdn.net/jiajiren11/article/details/80113311 阅读全文
摘要:
####upstream 七层负载模块 Syntax: upstream name { ... } Default: — Context: http Example: upstream backend { server backend1.example.com weight=5; server 12 阅读全文
摘要:
反向代理模式 Nginx配置模块 http websocket https ngx_http_proxy_module fastcgi ngx_http_fastcgi_module uwsgi ngx_http_uwsgi_module grpc ngx_http_v2_module ####pr 阅读全文
摘要:
####目录索引 autoindex Syntax: autoindex on | off; Default: autoindex off; Context: http, server, location //autoindex常用参数 autoindex_exact_size off; 默认为on 阅读全文
摘要:
####nginx程序日志配置说明 1.log_format定义日志格式语法 Syntax: log_format name [escape=default|json|none] string ...; #name是变量名 Default: log_format combined "..."; Co 阅读全文
摘要:
####nginx程序配置文件说明 1)配置文件的结构 nginx配置文件结构: 1)核心配置部分 main 区域 作用:Nginx服务器全局 包括:nginx worker进程的用户用户组 worker进程的数量 nginx进程的pid存放路径 nginx日志的存放路径以及配置文件的引入 2)事件 阅读全文
摘要:
####1.安装LNMP架构 yum安装 nginx1.12 php7.2 Mriadb5.7 1.安装Nginx //1.使用Nginx官方提供的rpm包 [root@nginx ~]# cat /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo 阅读全文
摘要:
####nginx程序区域模块 - location 功能:匹配不同的uri信息,做出相应处理 Syntax: location [ = | ~ | * | ^ ] uri { ... } 语法结构 匹配 uri 执行什么动作 awk '模式{动作}' Default: — Context:serv 阅读全文
摘要:
多虚拟主机配置: ####多ip配置 服务器配置多个网卡 每个网卡一个ip 一个ip一个server 基于ip地址访问 [root@web01 conf.d]# cat www.conf server { listen 172.16.1.7:80; 修改地址信息 server_name www.ol 阅读全文