提示:这里的用户指的是普通用户 读写执行权限对root无效 对于目录来说 1)只拥有读权限 可以ls 查看目录内容,不能切换进目录中去 也不能创建目录或文件 [support@node1 opt]$ ls log/ls: cannot access log/www: Permission denie ...
分类:
系统相关 时间:
2018-09-10 13:31:57
阅读次数:
269
find / -name 'access_log*' tail -20 access_log_20180907.log tail -f access_log_20180907.log ...
分类:
其他好文 时间:
2018-09-07 20:12:50
阅读次数:
158
IP相关统计 统计IP访问量(独立ip访问数量) awk '{print $1}' access.log | sort -n | uniq | wc -l 查看某一时间段的IP访问量(4-5点) grep "07/Apr/2017:0[4-5]" access.log | awk '{print $ ...
分类:
其他好文 时间:
2018-08-29 01:15:31
阅读次数:
193
quid的日志很重要。常常要了解的,其中最重要的就是命中率啦,不然反向代理做的用就不大。 cat access.log|gawk ‘{print $4}’|sort|uniq -c|sort -nr 9568 TCP_IMS_HIT/3046313 TCP_HIT/2002133 TCP_MISS/ ...
分类:
其他好文 时间:
2018-08-28 01:07:04
阅读次数:
295
日志的切割-bash-4.1#ll/bin/log.sh-rwxr-xr-x1rootroot152Aug2415:38/bin/log.sh-bash-4.1#cat/bin/log.sh#!/bin/bashA=`date+%Y%m%d`B="access"mv/usr/local/nginx/logs/access.log/usr/local/nginx/logs/"${A}_${B}.lo
分类:
其他好文 时间:
2018-08-24 17:14:15
阅读次数:
132
关闭localhost_access_log日志 修改在tomcat的安装目录conf文件夹下server.xml里配置,将AccessLogValve注释掉: ...
分类:
其他好文 时间:
2018-08-17 12:53:00
阅读次数:
136
方法1: #!/bin/sh While true do awk ‘{print $1}’.access.log|grep –v “^$”|sort|uniq –c >/tmp/access.log #netstat –an|grep EST|awk –F ‘[ :]+’ ‘{print $6}’| ...
分类:
系统相关 时间:
2018-08-16 00:56:46
阅读次数:
271
import logging# 1. 控制日志级别# 2. 控制日志格式# 3. 控制输出的目标为文件logging.basicConfig(filename='access.log', format='%(asctime)s - %(name)s - %(levelname)s -%(module ...
分类:
其他好文 时间:
2018-08-10 21:23:08
阅读次数:
120