nginx官方文档地址:http://nginx.org/en/docs/beginners_guide.html#static 对master进程发送信号。注:如果nginx不能按照预期的那样工作,需要查看access.log和error.log日志文件。日志文件路径在配置文件中,由access_ ...
分类:
其他好文 时间:
2018-04-15 13:42:11
阅读次数:
159
#!/bin/sh[-ftmp.txt]&&rm-frtmp.txtwhiletruedocat/var/log/httpd/access_log|awk‘{print$1}‘|sort|uniq-c>tmp.txtcattmp.txt|whilereadlinedopv=echo$line|awk‘{print$1}‘ipaddress=ec
分类:
系统相关 时间:
2018-04-11 18:11:57
阅读次数:
132
#!/bin/sh[-ftmp.txt]&&rm-frtmp.txtwhiletruedocat/var/log/httpd/access_log|awk‘{print$1}‘|sort|uniq-c>tmp.txtcattmp.txt|whilereadlinedopv=echo$line|awk‘{print$1}‘ipaddress=ec
分类:
其他好文 时间:
2018-04-11 17:05:12
阅读次数:
118
Apache日志详解1、Apache日志文件名称及路径介绍当我们安装并启动Apache后,Apache会自动生成两个日志文件,这两个日志文件分别是访问日志access_log(在Windows上是access.log)和错误日志error_log(在Windows上是error.log)。如果使用 SSL 服务的话,还可能存在 ssl_access_log和ssl_error_log 和 ssl_
分类:
Web程序 时间:
2018-04-08 13:16:45
阅读次数:
267
Nginx访问日志主要有两个参数控制 log_format 用来定义记录日志的格式(可以定义多种日志格式,取不同名字即可) access_log 用来指定日至文件的路径及使用的何种日志格式记录日志 lof_format的默认值: access_log的默认值: log_format语法格式及参数语法 ...
分类:
数据库 时间:
2018-04-06 21:15:51
阅读次数:
373
Nginx配置段 一、基于域名的配置 二、基于端口的配置 三、基于IP的配置 四、日志管理 我们观察nginx的server段,可以看到如下类似信息 #access_log logs/host.access.log main; 这说明 该server, 它的访问日志的文件是 logs/host.ac ...
分类:
其他好文 时间:
2018-04-01 20:00:30
阅读次数:
205
标红的为用的比较多的1.根据访问IP统计UVawk '{print $1}' access.log|sort | uniq -c |wc -l2.统计访问URL统计PVawk '{print $7}' access.log|wc -l3.查询访问最频繁的URLawk '{print $7}' access.log|sort | uniq
分类:
其他好文 时间:
2018-03-25 15:58:01
阅读次数:
280
1,通过端口区分(一个Service就是一个虚拟主机) 配置: 2,通过域名来区分 server { listen 80; server_name www.taobao.com; #charset koi8-r; #access_log logs/host.access.log main; loca ...
分类:
其他好文 时间:
2018-03-23 18:20:44
阅读次数:
151
解决:Limit of total fields [1000] in index [nginx-access-log] has been exceeded" 的问题 PUT http://10.10.6.225:9200/cars/_settings { "settings": { "index.m ...
分类:
其他好文 时间:
2018-03-15 15:10:57
阅读次数:
537
访问量统计1.根据访问IP统计UVawk‘{print$1}‘access.log|sort|uniq-c|wc-l2.统计访问URL统计PVawk‘{print$7}‘access.log|wc-l3.查询访问最频繁的URLawk‘{print$7}‘access.log|sort|uniq-c|sort-n-k1-r|more4.查询访问最频繁的
分类:
其他好文 时间:
2018-03-14 12:49:10
阅读次数:
141