Nginx 工作原理、进程模型 2023-01-05 Nginx Nginx Nginx Nginx的模块与工作原理 Nginx由内核和模块组成,其中,内核的设计非常微小和简洁,完成的工作也非常简单,仅仅通过查找配置文件将客户端请求...
Nginx 日志分析常用命令 2022-09-04 Nginx Nginx 日志 Nginx 输出nginx日志中每秒访问数超过40的时间点 /bin/awk -F '[][]' '{print $2}' /alidata/log/ng...
Nginx 禁止ip直接访问或任意域名访问 2022-08-10 Nginx Nginx Nginx 添加server 禁止ip直接访问 server { listen 80 default_server; server_nam...
Nginx 配置文件说明 2022-08-10 Nginx Nginx Nginx nginx.conf user www www; # Nginx的worker进程运行用户以及用户组 worker_processes ...
Nginx 查看高频访问 IP,并封禁 IP 详解 2022-08-10 Nginx Nginx Nginx 1、查找服务器所有访问者ip方法: awk '{print $1}' nginx_access.log |sort |uniq -c|sort...
启用nginx status状态页详解 2022-08-08 Nginx Nginx Nginx nginx配置 在默认主机里面加上location或者你希望能访问到的主机里面。 server { listen 80; ...
Nginx 配置子目录项目 2022-07-05 Nginx Nginx Nginx 在项目中有时一个完整的项目需要整合在另外一个项目中,作为一个子模块存在 如有两个项目 help 、 blog ,根目录分别为/alidata/...
nginx+php使用open_basedir限制站点目录防止跨站 2022-07-05 Nginx open_basedir 跨站 Nginx PHP 方法1)在Nginx配置文件中加入 fastcgi_param PHP_ADMIN_VALUE "open_basedir=$docume...
nginx如何防止域名权重被分散? 2022-06-19 Nginx Nginx Nginx 一般我们创建的站点中都会将一级域名和 www 二级域名指向我们的站点,以域名test.com为例,我们访问 test.com 或 www.te...
Nginx 负载均衡配置 2022-02-13 Nginx Nginx 负载均衡 Nginx 配置实例 测试环境 域名:api.test.com 服务器:Ubuntu 20.04.3 、 nginx/1.20.1 A服务器:172.2...
Lnmp 环境配置 2022-02-10 MySQL Lnmp MySQL PHP Nginx Linux 1、lnmp 环境安装 https://lnmp.org/download.html 2、php 扩展安装 安装 opcache、redis、...
Nginx server_name _; 的理解 2022-01-24 Nginx Nginx Nginx server_name _; : 这里指定的不是什么特别的名字,它表示的是一个无效的域名。 假设配置是这样的 nginx.conf http ...