![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 93
zssz1026
这个作者很懒,什么都没留下…
展开
-
Nginx负载均衡upstream讲解
upstream lbs { server 192.168.0.106:8080; server 192.168.0.106:8081; } location /api/ { proxy_pass http://lbs; proxy_redirect default; }原创 2020-10-21 15:48:40 · 133 阅读 · 0 评论 -
自定义日志格式,统计接口响应耗时
统计耗时接口, 列出传输时间超过 2 秒的接口,显示前5条 cat time_temp.log|awk '($NF > 2){print $7}'|sort -n|uniq -c|sort -nr|head -5 备注:$NF 表示最后一列, awk '{print $NF}'原创 2020-10-20 14:49:48 · 342 阅读 · 0 评论 -
Nginx统计站点访问量、高频url统计
查看访问最频繁的前100个IP awk '{print $1}' access_temp.log | sort -n |uniq -c | sort -rn | head -n 100 统计访问最多的url 前20名 cat access_temp.log |awk '{print $7}'| sort|uniq -c| sort -rn| head -20 | more原创 2020-10-20 14:48:45 · 1198 阅读 · 0 评论 -
案例实战之配置文件-图片服务器
原创 2020-10-16 16:11:44 · 68 阅读 · 0 评论 -
玩转Nginx配置虚拟主机,搭建前端静态资源服务器
原创 2020-10-16 15:59:56 · 184 阅读 · 1 评论 -
Nginx核心之配置文件剖析
# 每个配置项由配置指令和指令参数 2 个部分构成 #user nobody; # 指定Nginx Worker进程运行以及用户组 worker_processes 1; # #error_log logs/error.log; # 错误日志的存放路径 和错误日志 #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/n...原创 2020-10-15 15:05:29 · 31 阅读 · 0 评论 -
本地域名映射虚拟机IP
1、首先找到host文件:C:\Windows\System32\drivers\etc原创 2020-10-14 16:35:01 · 411 阅读 · 0 评论 -
nginx命令
1.启动nginx 进入安装目录下的sbin目录,然后输入命令./nginx原创 2020-10-14 16:16:45 · 60 阅读 · 0 评论 -
Nginx安装
下载压缩包 并上传 http://nginx.org/en/download.html 安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 创建一个文件夹,上传本地提供的nginx包 tar -zxvf nginx-1.18.0.tar.gz 解压文件 cd nginx-1.18.0 ./configure make ..原创 2020-10-14 16:12:21 · 80 阅读 · 0 评论