默认nginx / Linux日志在哪个文件夹? 一般在 xxx.xxx.xxxx.com/home/admin 路径下面的error.log文件和access.log文件error_log logs/error.log; #错误日志access_log logs/access.log; #访问日志 ...
分类:
数据库 时间:
2017-07-05 01:18:26
阅读次数:
263
nginx的log日志分为access log 和 error log 其中access log 记录了哪些用户,哪些页面以及用户浏览器、ip和其他的访问信息 error log 则是记录服务器错误日志 错误日志的形式如下: 1 2 201.158.69.116 - - [03/Jan/2013:2 ...
分类:
数据库 时间:
2017-07-05 00:25:31
阅读次数:
275
1、Linux挂载Winodws共享文件夹2、查看http的并发请求数及其TCP连接状态:3、用tcpdump嗅探80端口的访问看看谁最高4、统计/var/log/下文件个数5、查看当前系统每IP连接数6、shell下32位随机密码生成7、统计出apache的access.log中访问量最多的5个IP8、如何查看二进制文件的内容..
分类:
其他好文 时间:
2017-07-04 23:21:50
阅读次数:
236
配置防盗链,禁止从第三方访问文件,如图片等静态资源,减少不必要的带宽消耗。 ...
分类:
其他好文 时间:
2017-07-04 23:20:31
阅读次数:
213
1、配置指定文件不记录日志,同时设置静态文件过期时间location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${ expires 15d; access_log off;}2、只配置静态文件过期时间#配置静态文件过期时间location ~ \.(js|css)${ exp ...
分类:
其他好文 时间:
2017-07-04 22:27:06
阅读次数:
277
(1)access_log是ngx_http_log_module模块的配置项。 Syntax: access_log path [format [buffer=size] [gzip[=level]] [flush=time] [if=condition]]; access_log off; De ...
分类:
Web程序 时间:
2017-07-02 19:05:28
阅读次数:
210
需求分析: 标准化:日志放哪里( /data/logs),格式是什么(JSON) 命名规则(access_log error_log runtime_log)日志怎么切割access error crontab进行切分 runtime_log,所有文本rsync到NAS后删除最近三天前的 工具化:如 ...
分类:
其他好文 时间:
2017-06-30 00:58:54
阅读次数:
196
server { listen 80; server_name bd.zhihu.com; sendfile off; #charset koi8-r; access_log /var/log/nginx/host.access.log main; set $root_path '/var/www/ ...
分类:
其他好文 时间:
2017-06-28 23:08:56
阅读次数:
765
Nginx Access Log日志统计分析常用命令 IP相关统计 统计IP访问量 awk '{print $1}' access.log | sort -n | uniq | wc -l 查看某一时间段的IP访问量(4-5点) grep "07/Apr/2017:0[4-5]" access.lo ...
分类:
数据库 时间:
2017-06-28 17:06:03
阅读次数:
303
#!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$myPath" fi... ...
分类:
系统相关 时间:
2017-06-26 10:31:23
阅读次数:
177