以下通过介绍常用模块来讲解Nginx配置文件指令(以下内容都是参照官方网站)1、Nginx的主模块的常用配置指令:(1)error_log语法:error_logfile[debug|info|notice|wran|error|crit]默认值:${prefix}/logs/error.log指定Nginx服务(与FastCGI)错误日志文件位置。每个字段的..
分类:
系统相关 时间:
2014-12-29 06:42:16
阅读次数:
246
#!/bin/bash#desc: cut nginx log#this script run at 00:00LOG_PATH='/usr/local/nginx/logs/';LOG_BACK_PATH='/home/www/log/'$(date -d '-1 days' +'%Y/%m/')...
分类:
其他好文 时间:
2014-12-28 23:41:28
阅读次数:
213
本函数是调用内部的帮助系统,主要使用在交互模式下的查看函数或对象使用文档。例子:print(help('print'))结果输出如下:Help on built-in function print in module builtins: print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) ...
分类:
编程语言 时间:
2014-12-28 11:43:44
阅读次数:
196
nginx有一个非常灵活的日志记录模式。每个级别的配置可以有各自独立的访问日志。日志格式通过log_format命令来定义。ngx_http_log_module是用来定义请求日志格式的。一.日志记录配置详解1.access_log指令语法:access_logpath[format[buffer=size[flush=time]]];
access_logpath..
分类:
其他好文 时间:
2014-12-28 01:56:03
阅读次数:
372
http://william71.blogbus.com/logs/33484772.html 在Unix和Linux的各种操作系统下,每个文件(文件夹也被看作是文件)都按读、写、运行设定权限。 例如我用ls -l命令列文件表时,得到如下输出: -rw-r--r-- 1 ap...
分类:
其他好文 时间:
2014-12-26 16:56:31
阅读次数:
166
#!/bin/bashcd/tmpLOG_PATH=`find/data/logs/-mtime+1-name"*".log|awk-F/‘NF--‘|tr-s"""/"|uniq`foriin${LOG_PATH};docd${i}find.!-name"."-typed-prune-o-typef-mtime+1-name"*.log"-print|awk-F/‘{print$2}‘|xargsgzip-9done
分类:
其他好文 时间:
2014-12-26 14:51:49
阅读次数:
133
进入/etc/logrotate.d目录创建tomcat文件,内容如下:/usr/local/java/tomcat7/logs/catalina.out{dailyrotate15missingoknotifemptycopytruncatecompressnodelaycompresssharedscriptspostrotate/bin/kill-HUP`cat/var/run/syslogd.pid2>/dev/null`2>/dev/null||true/bi..
分类:
系统相关 时间:
2014-12-26 14:50:41
阅读次数:
296
our database operates in ARCHIVELOGmode. The redo log files are
not multiplexed and one of the online redo logs is missing. The missi
ng redo log sequence, 230, is not archived and it contained inf...
分类:
数据库 时间:
2014-12-26 09:41:12
阅读次数:
236
1、下载地址http://www.mongodb.org/2、安装前准备2.1、创建数据目录和日志目录[root@gflinux4mongodb]#mkdir-p/opt/mongo/{data,logs}2.1、创建用户和组[root@gflinuxmongodb]#useraddmongo[root@gflinuxmongodb]#groupaddmongogroupadd:groupmongoexists2.3更改目录属组[root..
分类:
数据库 时间:
2014-12-25 18:48:51
阅读次数:
292
编辑配置文件vi /etc/nginx/nginx.confuser www www;worker_processes 2;error_log logs/error.log notice;events { worker_connections 1024;}http { includemime.typ...
分类:
其他好文 时间:
2014-12-25 15:59:53
阅读次数:
134