在server.xml里的<host>标签下加上 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pa ...
分类:
其他好文 时间:
2016-08-02 16:44:48
阅读次数:
154
网页的根目录本来是: 6 root /app/www/default; 参数:access_log off >关闭了记录这个页面的到访问日志里!!!默认是记录访问日志的。 ...
分类:
其他好文 时间:
2016-08-02 13:30:30
阅读次数:
144
logs/error_logCustomLog logs/access_log common--默认为以上部分 修改为如下: logs/error_logCustomLog logs/access_log common--默认为以上部分 修改为如下: logs/error_logCustomLog ...
分类:
Web程序 时间:
2016-08-01 15:22:08
阅读次数:
300
server{listen80;server_nameaaa.com;location/{proxy_passhttp://2.2.2.2/;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;}#access_log/home/logs/aaa_access.logcombined;}如果后端的机器有..
分类:
其他好文 时间:
2016-07-30 22:44:18
阅读次数:
521
写一个脚本,批量生成10个虚拟主机配置:/etc/httpd/conf.d/vhosts#.conf主机名:www#目录:/data/vhosts/www#访问日志:logs/www#-access_log接受命令行参数,作为命令和主机名传递;使用函数:列出:list[-a|vhost_name]创建:createvhost_name删除:delete[-a|vhost_name]#!..
分类:
其他好文 时间:
2016-07-20 06:50:39
阅读次数:
478
<VirtualHost 121.42.52.55>ServerName 121.42.52.55ErrorLog logs/121.42.52.55-error.logCustomLog logs/121.42.52.55-access.log combined<Location />Order ...
分类:
Web程序 时间:
2016-07-06 11:52:15
阅读次数:
239
今天给大家带来的是开源实时日志分析ELK,ELK由ElasticSearch、Logstash和Kiabana三个开源工具组成。官方网站:https://www.elastic.co其中的3个软件是:Elasticsearch是个开源分布式搜索引擎,它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格..
分类:
其他好文 时间:
2016-07-03 23:38:44
阅读次数:
364
记录这个就是方便自己以后查看!!!nginx按天切割日志脚本示例如下#!/bin/bash
logs_path="/usr/local/openresty/nginx/logs/"
pid_path="/usr/local/openresty/nginx/logs/nginx.pid"
mv${logs_path}access.log${logs_path}access_$(date-d"yesterday"+"%Y%m%d").log
gzip${l..
分类:
其他好文 时间:
2016-06-30 23:35:45
阅读次数:
288
#!/bin/bash # Author: Wang Xiaoqiang # ReadMe: Nginx access log split script # crontab -e # 59 23 * * * sh /script/nginx_split.sh LOG_PATH='/usr/local ...
分类:
其他好文 时间:
2016-06-30 18:04:07
阅读次数:
105
nginx的配置文件一开始默认是80端口,出现这个错误多半是80端口已经被占用。这时候只需要把 server { listen 8088; server_name localhost lcsf.com; #charset koi8-r; #access_log logs/host.access.lo ...
分类:
其他好文 时间:
2016-06-27 15:10:25
阅读次数:
352